https://github.com/
1. Install Git on Windows
2. Your name and email address
1.giithup Deleting a remote library
2.GIITHUP Remote Library Association Local
3.giithup Creating and Merging branches
3. Local repository
- Git init command to turn this directory into a repository that git can manage
- F:\MyRepository
- Work area, staging area
4.op
OP1 Add + Submit
- git status
- git add readme.txt
- Git commit-m "wrote a Readme file"
- Git push-f Origin Master
View:
http://htmlpreview.github.io/?
Https://github.com/lanczh/works/blob/master/web/index.html
OP2 Run the git status command to see the results
Remote Warehouse
We run the command under the local Learngit warehouse, based on GitHub's prompt
1. Method One
Https://github.com/lanczh/works.git
Local version Library
Mom doesn't have to worry about my hard drive anymore.
Codereposition
F:\CodeReposition
ssh-t [email protected]
git clone https://github.com/lanczh/works.git
2. Method Two
Associate a local existing project on a new project on GitHub
Execute under F:\CodeReposition
Git remote add Origin https://github.com/lanczh/works.git
We create the dev branch and then switch to the Dev branch
git checkout-b branch0822//equivalent to the following two commands: Git branch dev/git Checkout Dev
Then, use the GIT branch command to view the current branch:
- Git branch
- git checkout Master
- git merge Dev
- git branch-d Dev
git conflicts
- Git status can also tell us about conflicting files
- Git uses <<<<<<<,=======,>>>>>>> to mark the contents of different branches, we modify the following to save:
- Use the git log--graph command to see the branch merge diagram
- git log--graph--pretty=oneline--abbrev-commit
Https://github.com/lanczh/works/blob/master/pos/index.html
GitHub upload-Remote warehouse management