Generic Resources about Git
Some good video talks about http:
- Linus Torvalds: History&Concepts
- Scott Chacon: Git basics, live examples
- Randal Schwartz: Git basics, descriptional
- Jesica Kerr: Git basics, descriptional
A good book of the subject:
Install Git
On Windows
Install MySysGit (Be sure to check the install with "Git bash here" support)
On Linux
Use your package manager to install git.
Basic Functions
Cloning a repo to your hard drive
The most basic form of this command is:
$ git clone --recursive http://github.com/{username}/{reponame}
A slightly better form is to specify the folder name of the local repo:
$ git clone --recursive http://github.com/{username}/{reponame} {localreponame}
In the case of mangosZero this would be a valid command to clone it correctly to a folder called 0server
$ git clone --recursive http://github.com/mangoszero/server serverZero
Sometimes you may want to clone a specific branch i.e. develop21
$ git clone --recursive http://github.com/{username}/{reponame} -b develop21 {localreponame}
Updating an existing repo with the latest source
From the folder containing the source, type:
$ git pull --recurse-submodules
This will pull in all updated files, you can then proceed to build using Visual Studio or cmake/make on Linux.
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now