Git Product home page Git Product logo

git_learning's Introduction

git_learning

Something you should KNOW FIRST

This is a example for git usage with GitHub, you need learn how to use, and build your own branch with your git learning notes from this master. And if there are something new about git and GitHub, you SHARE IT by commit and push your branch

Recommend to Use Atom eiditor , it has a good git&github plugin and well supoort markdown and program languages

Before do this you need generate you 'ssh key' and add to your github account

Github help

After set the SSH Key, You can clone this repository

git clone [email protected]:HITSZ-LeggedRobotics/git_learning.git

For something about markdown writing

Shunyao Wang's Markdown notes

If you have some notes SHARE IT!

Using Git in a Terminal

1. Build a Git repository(Locally)

cd path to you git repository

Init you repository

git init if you want to connect to a repository on github git remote add origin git@github.com:your_repositry.git origin is the default name of your remote connection

Add something in your repository

git add <filename> or *(all file in the derictory) this is add new file or add file which you have changed the content and the change didn't apply/commit

Add a commit

git commit ||git commit - m “your description about the commit”

push to github

git push -u origin master add -u for the fisrt push

Some other git command

  • Add a branch git checkout -u <branch name> -Switch to a branch git checkout <branch name> YOU should push the correspond branch name to github so that you can push to the right branch
  • Fetch fetch remote repository git fetch origin
  • Merge merge to current repository git merge origin/<branch name>
  • Pull Fetch and merge git pull origin <branch name>:<branch name>

Using Git and GitHub With Atom

TODO(Shunyao)

different member cooperated on a repository

branchs cooperation

Reference

  1. 廖雪峰Git教程
  2. Git指令

git_learning's People

Contributors

shunyaowang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.