Quantcast
Channel: Zombie Brainz' Juice » coding
Viewing all articles
Browse latest Browse all 10

GitHub on several computers

$
0
0

I have written in a previous post how to use GitHub as a single developer for backuping code sources. This furthermore allow you to enjoy the code versioning. You may now want to work on several computers, with the master safely stored on GitHub.

To do that, you need to git pull to retrieve on one computer what you did on another. Go into the directory of your repository, and just use this simple command. You need to have git push origin master on the other computer before. You will then see something like that:

arnaud@hercules:~/Documents/GitHub/youbot-workspace-explorer$ git pull
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 4), reused 4 (delta 2)
Unpacking objects: 100% (6/6), done.
From https://github.com/Arn-O/youbot-workspace-explorer
   8e0601d..68fc4e0  master     -> origin/master
Updating 8e0601d..68fc4e0
Fast-forward
 wsexplorer.py | 75 +++++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 55 insertions(+), 20 deletions(-)

If you forget to push or pull, don’t worry. Git will try to compare and merge the modification. This tool is designed for that and even on a very large scale.

Forks and Pull Requests in GitHub GitHub on several computers

Forks and Pull Requests in GitHub

The post GitHub on several computers appeared first on Zombie Brainz' Juice.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images