
git
文章平均质量分 70
Jincenter
这个作者很懒,什么都没留下…
展开
-
Git拉取远程分支代码到本地
新建一个空文件,文件名为mygit git init git remote add origin git@github.com:aaa.git (注意windows中用ssh,一般平台用http) git fetch origin dev(dev为远程仓库的分支名) git checkout -b dev(本地分支名称) origin/dev(远程分支名称) git pull origin dev(远程分支名称) 修改代码然后,,git add . git commit -m “add file” git.转载 2020-06-02 21:06:26 · 5304 阅读 · 0 评论 -
git-更改本地和远程分支的名称
git-更改本地和远程分支的名称 git branch -m old_branch new_branch # Rename branch locally git push origin :old_branch # Delete the old branch git push --set-upstream origin new_branch # Push the new branch, set ...转载 2020-01-19 23:02:06 · 230 阅读 · 0 评论 -
git 提交到远程分支
ssh-keygen -t rsa -C “19036685@163.com” git init git config --global user.name “your_username” #设置用户名 git config --global user.email “your_registered_github_Email” #设置邮箱地址 git status git checkout -b ...原创 2019-11-12 20:57:32 · 348 阅读 · 1 评论