Git Bash Here
git init
git add .
git commit -m 'Description'
git remote add origin https://github.com//.git
git remote add origin [email protected]:******/manage.git
git pull --rebase origin master
git push -u origin master
mkdir: XX (create an empty directory XX where XX is the directory name)
pwd: Display the current directory path.
git init turns the current directory into a manageable git repository, generating a hidden .git file.
git add XX adds the xx file to the staging area.
git commit -m "XX" submits the file -m followed by a comment.
git status view repository status
git diff XX view what content has been modified in the XX file
git log view history
git reset --hard HEAD^ or git reset --hard HEAD~ rollback to the previous version
Establish a git repository
git init
Add all files of the project to the repository
git add .
Commit the added files to the repository
git commit -m "Comment statement"
Associate the local repository with GitHub
git remote add origin https:// h
git pull --rebase origin master
Upload code to GitHub remote repository
git push -u origin master
Syntax: git config --global user.name ''
Syntax: git config --global user.email ''
Create a folder locally
Syntax: mkdir
Create a file in the wandou folder
Syntax: touch
Syntax: git status
Please give a like! Your approval/encouragement is my greatest motivation for writing!#
Welcome to follow Dashu Xiaosheng's Jian Shu!#
This is a blog with quality and attitude
Blog