• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Git Desktop - Connect to VPS repository

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,249
Solutions
71
Reaction score
628
Location
Hell
GitHub
idontreallywolf
I have a repository cloned onto my VPS and I am not sure how I would visually use git. When I had the server on my local machine I Would use git desktop to push commits or create branches. But the vps is just a terminal without any special magic effects that allow me to review file modifications and stage only specific lines etc.

How can I solve this issue?
Would it be possible to remotely connect to the VPS (using Git Desktop) and then review changes?
 
I don't think you can, you'd have to pick up Git Bash and learn Git commands.
Or you could just continue to use it locally, push a new branch and merge the branch on your VPS and recompile.
 
I have a repository cloned onto my VPS and I am not sure how I would visually use git. When I had the server on my local machine I Would use git desktop to push commits or create branches. But the vps is just a terminal without any special magic effects that allow me to review file modifications and stage only specific lines etc.

How can I solve this issue?
Would it be possible to remotely connect to the VPS (using Git Desktop) and then review changes?

Sounds like a super bothersome way to do something as simple as a git diff command? (git diff)

See git status and changed files:
git status

Sync remote repo to your local files:
git pull

See the difference between repo and your local file:
git diff /filepath

add a file to a commit
git add /filepath

git status will also show which files are added to your commit after using git add.

commit the file(s) added with above git add command:
git commit -m "Commit message goes here"

push the created commit to the repository:
git push
or
git push origin/master (or whatever branch your working on)

If you get stuck in a "terminal text editor", you can do CTRL + X and press enter, if that doesn't work, type :q and press enter.
 
Last edited:
You can just do:
git commit -am "Message"

or

git add .
git commit -m "Message"

If you want to commit all files.
 
Back
Top