git 常用命令

来源:互联网 发布:淘宝管控纪录什么意思 编辑:程序博客网 时间:2024/04/26 04:35

1,查看当前branch

#git branch

2,check out

#git checkout new_mybranch

3,check in

#git commit  //you have to add comment

4,adding new file

#git checkout new_mybranch

#add file.....

#git add .   //all file

#git commit

5, photo UI

#gitk --all

6, check whether the directory of file is controlled by git

#find -name .git
./opt/com.google.android/.git
./opt/com.google.android.googlelogin/.git
./policies/base/.git
./base/.git