1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
删除本地有但在远程库已经不存在的分支
git remote prune origin
删除本地缓存 再git push删除远程对应文件
git rm -r --cached build
git log develop
合并用这命令
git checkout main
git merge --squash -X theirs develop
git commit -m "merge from b20449b6b32915afa548b0facd7fc0525b5c0171"
git pull
git push
虽然终端可以实现代码管理,但是sourceTree还是要输入密码的,必须修复掉
1、命令行进入项目目录,输入:
git config --global credential.helper store
2、在source tree更新代码,提示输入密码,输入一次后以后就不需要输入了
|