Git Config:
To get ready with git add these lines to .git/config (/home/USER/project/.git/config)

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch “master”]
remote = origin
merge = refs/heads/master

[remote “origin”]
url = git@github.com:username/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[gui]
geometry = 1018×659+9+104 382 207

Branches

1.Create a branch:

git branch bname # create the branch
git checkout bname # switch to the branch
git remote add bname_1 git@github.com:username/project.git # create a remote “folder” remotely
git fetch bname_1 # initialized the remofe “folder” locally
git push bname_1 bname:refs/heads/bname # initialize the remote “folder” remotely
git config branch.bname.remote bname_1 # add lines to .config file
git config branch.bname.merge refs/heads/bname # add lines to .config file

2.Switch branch:

git checkout bname # switches to bname
git checkout master # switches to master

3.Which branch am I on?:

git branch

4.Get branch from github:

git checkout –track -b bname origin/bname

5. Download a everything from github:

git clone git@github.com:username/project.git
cd project
git checkout –track -b bname origin/bname

Tags

git tag “v0.2”
git push –tags