随笔分类 -  git

摘要:``` adduser git mkdir /git cd /git git init --bare sample.git chown -R git:git sample.git if port custom: git clone ssh://git@remote_ip:remote_port/git/download.git master git push ssh://git@remote_... 阅读全文
posted @ 2018-10-31 21:58 idlewith 阅读(206) 评论(0) 推荐(0)
摘要:``` ssh-keygen -t rsa paste key to github website after config ssh key git remote set-url origin git@github.com:username/repo.git ``` 阅读全文
posted @ 2018-09-23 14:32 idlewith 阅读(186) 评论(0) 推荐(0)
摘要:git reset hard (版本回退) git checkout b dev(新建分支并切换到dev分支) git merge dev(在master上面合并dev) git tag v1.0(和commit绑定,识别性更好) git stash(临时保存工作区的改动) git stash ap 阅读全文
posted @ 2017-02-03 14:47 idlewith 阅读(115) 评论(0) 推荐(0)
摘要:$ rm rf .git $ git config gobal core.autocrlf false 阅读全文
posted @ 2017-02-03 14:41 idlewith 阅读(101) 评论(0) 推荐(0)