GitHub upload-Remote warehouse management

Source: Internet
Author: User

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

    • git status
    • git rm


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.