GIt 基础

git基本操作

 

git
github
gitlab
atlassin

 

 

 

git -swtich master

git pull

git tag v100

git push origin v100  

git status

git add .

git commit -m 'I add'   

git push

git revert -n <commit_hash>
git pull

exit

cd ..

 clear   

git log

git fetch

git clean

git clean -f

git reset --hard  <hash>


git checkout master
git checkout  MY_BRANCH
git branch
git branch -D MY_BRANCH
git merge origin
git checkout -b MY_BRANCH
git checkout master
git reset -- hard before commit or push seldom use
set up a new branch and pull from master ,then develop if it worked , set up pull request to master

delete macro defination 0 or 1 because it can be confused by other people

delete unused code

 

 

Git 基本操作 | 菜鸟教程

 

Git基本使用教程(一):入门及第一次基本完整操作_git的使用-CSDN博客

 

posted @ 2025-02-27 16:41  不是大器想晚成  阅读(8)  评论(0)    收藏  举报