git基础命令及概念

git常用命令

git download

初始化GIT项目

1
git init

git开发分支合并到主分支的正确姿势

将开发分支的commit合并

查找commit的hash code

1
git log

git can not find remote branch

update git config file .git/config

Git diff --name-only and copy that list

1
zip update.zip $(git diff --name-only commit commit)

来自stackoverflow参考链接

git list only untracked files

git列出还未保存的文件
该命令在某些场景很有用,加入保存前对文件进行处理

no submodule mapping found in .gitmodules

remove cache

1
git rm --cached modulepath
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×