Git小白学习心得

https://www.cnblogs.com/du-hong/p/9921214.html

Setup

git config --global user.name "Your Name"
git config --global user.email [email protected]

Every Git commit has a descriptive message, called the commit message.Window’s default is VIM.
Change it to Notepad:

git config --global core.editor notepad

基本指令

commad line

cd //change directory
cd .. //返回上一级
pwd //print working directory: 显示现在所在目录
dir  //查看内容
mkdir //make directory
cls  //清屏
git init //在当前路径下创建一个Git仓库
git log -- looking at the history of your repository.
git clone URI  -- 在当前目录下克隆远程仓库
git add filename
git add *
git commit -m 'version'
git push origin master
git remote add <repName> <URI>
git remote rm <repName>
git pull --rebase <RepName> <branchName>
发布了9 篇原创文章 · 获赞 0 · 访问量 136

猜你喜欢

转载自blog.csdn.net/weixin_40151234/article/details/104812928