Git Bash Here
git init
git add .
git commit -m 'Explanation'
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 refers to the directory name)
pwd: display the path of the current directory.
git init: turn the current directory into a manageable git repository and generate a hidden .git file.
git add XX: add the xx file to the staging area.
git commit -m "XX": commit the file, where the text after -m is the comment.
git status: view the status of the repository.
git diff XX: view the changes made to the XX file.
git log: view the history.
git reset –hard HEAD^ or git reset –hard HEAD~: roll back to the previous version.
Create 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 the remote GitHub 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 it a thumbs up! Your support and encouragement are my greatest motivation for writing!#
Welcome to follow Dashu Xiaosheng's Jian Shu!#
This is a blog with quality and attitude
Blog