#. 编写git的gitignore文件时如何只忽略当前目录下的某文件呢

在文件名前加斜线 / 即可


# git pull如何从remote中拉下来所有分支

git pull –all

git branch -a 查看目前所有分支,包括tracking branch

再用 git branch –track branch_name start_point 开一个本地分支,并且设好该本地分支的upstream


# git 10小时免输git密码

git config --global credential.helper "cache --timeout=36000"


git config –global –unset credential.helper

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.