git pull
當(dāng)使用https克隆項(xiàng)目時(shí) ,git clone https://xxx.git
后續(xù)每次git pull需要輸入賬號(hào)密碼
找到項(xiàng)目下的.git/config
文件
把git賬號(hào):git密碼@
放到https://
后邊
原始url = https://codeup.aliyun.com/649a43d0b58/xxx.git
改后url = https://賬號(hào):密碼@codeup.aliyun.com/649a43d0b58/xxx.git
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://賬號(hào):密碼@codeup.aliyun.com/649a43d0b58/xxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
remote = origin
merge = refs/heads/develop
查看所有分支(包括遠(yuǎn)端)git branch -a
[ * develop ] 表示當(dāng)前位于本地develop分鐘
[ mater ] 表示為本地master分之
[ remotes/origin/.... ] 表示遠(yuǎn)程分支
拉取遠(yuǎn)端分支git checkout -b remotes/origin/feature/月結(jié)體現(xiàn)改版