git cmd
a short intro to git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.. Git is easy to learn and has a tiny footprint with lightning fast performance.It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
# init repo
> git init
# set all files to repo
> git add .
# add only specific file to repo
> git add foo/foo.bar
# comment commit
> git commit -m "initial release"
# add remote repository
> git remote add origin git@gitlab.com:x33u/sample.git
# push changes from to remote master
> git push -u origin master
# create a new branch
> git checkout -b fooname
# change to specific branch
> git checkout fooname