当前位置:   article > 正文

自己的一些常用Git命令_git config global stored token

git config global stored token
https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/


https://gist.github.com/CHEF-KOCH/989dc4e48980a31370f07f26575a931a
============================================================
先执行这条命令 $git config --global credential.helper store
然后执行$git push origin gongyi
再输入username和token
git bash 会记住token了
保存token默认的文件路径
~/.git-credentials


============================================================
https://help.github.com/enterprise/2.12/user/


=================================================================================================


Administrator@btpvm3865 MINGW64 /c/gongyi/openL10n (gongyi)
$ git config --global user.email "yi.gong4@pactera.com"


Administrator@btpvm3865 MINGW64 /c/gongyi/openL10n (gongyi)
$ git config --global user.name "Yi Gong"


Administrator@btpvm3865 MINGW64 /c/gongyi/openL10n (gongyi)


============================================================================
Git : C:\Program Files\Git


synchronized
commit(Local Repository)
staged
untracked


https://github.houston.softwaregrp.net/g11n-automation-technology/openL10n


------------force git overwrite local files----------------
git fetch --all
git reset --hard origin/master
git pull origin master
--------------------------------------------


$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>


$ git --help


git checkout -b gongyi


$ git -all
$ git commit -m "mockup test"
$ git push --set-upstream origin gongyi
$ git pull origin master






--下载代码
git pull origin master


C:\Program Files\Git\mingw64\share\doc\git-doc






声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/463281
推荐阅读
相关标签
  

闽ICP备14008679号