I am very new to GitHub.
I have created a GitHub repository and pushed it from my computer.
Now I need to work on it from another computer.
How can I checkout my own repository? Should I fork it as for other people's repositories?
It seems to me a bit silly to fork my own repository, though.
Open a command prompt. To launch GitHub Desktop to the last opened repository, type github . To launch GitHub Desktop for a particular repository, type github followed by the path to the repository. You can also change to your repository path and then type github . to open that repository.
On the project page (http://github.com/you/project) there will be a link on the right at the bottom of project tools list with a path to a .git repo
Open a terminal and type:
git clone [link to repo here]
That will create a local clone of the repo you can work on, then if you follow the instructions on GitHub to add a remote server you can push your changes back.
Syncing files back and forwards is just as easy;
Computer A (Had the original git repo)
Computer B (Has the cloned repo)
Make some changes on Computer A, then run
git push origin master
Go to computer B, then run
git pull origin master
To sync your new changes, make some changes on computer B then push back
git push origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With