Sunday, July 28, 2013

Git Note

git checkout -b mybranch
git add filename/directory
git commit -m "comments"
git format-patch master --stdout > your_patch.patch
publican build --format=html --lang=en-US --common_contents=./Common_Contents --config=your_publican.cfg
Configure Username and email and check configuration .
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --list
Clone a specific branch
git clone -b branch_name  repository
The following command will clone the master branch and put it in a directory named your_directory
git clone repository your_directory
Revert to an earlier version.
git checkout which_commit
Push local changes to remote repositories.
git push https://username:password@github.com/name/something.git

No comments:

Post a Comment