tips:git

This is an old revision of the document!


GIT

NAME=project.git
mkdir $NAME
cd $NAME
git init --bare
mv hooks/post-update* hooks/post-update
chmod +x hooks/post-update
git update-server-info

reference

create locally

git branch [name_of_your_new_branch]
git checkout [name_of_your_new_branch]

create or update remotly

git push origin [name_of_branch]

view remote branches

git fetch -v

fetch remote branches

git pull origin [name_of_branch]
  • tips/git.1475764545.txt.gz
  • Last modified: 2016/10/06 16:35
  • by scipio