git command

1. Upload
cd /to/your/path 
# git add .
# way a: git commit -m 'your description'
# way b: git commit
# git push

2. Clone
# git clone git@192.168.0.200:/home/xxx/git/dsif.git
  
3. add tag
git tag -a v0.0.01 -m "v0.0.01"
git push origin --tags

4. add new repository
cd /mnt/data/git/
su gitrm -rf bg77.git
mkdir bg77.git
cd /mnt/data/git/bg77.git
git init --bare --shared
vi description

/* if add new repository, must add in list */
cd /home/git
vi projects.list

5. checkout by tag
git checkout <tag_name>

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *