Skip to content

unixmonkey/learngit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learngit

The goal of this project is to help YOU learn how to contribute to someone's project on GitHub.

This is a playground, and an educational tool.

Feel free to send pull requests and open issues.

If you do not already have an account with GitHub, please sign up.

Add the output of this (your SSH public key) to Github under "Account Settings" -> "SSH Keys'

  cat ~/.ssh/id_rsa.pub

Fork the other project to your own Github account (in the top-right corner of the page, click Fork) and clone to work with locally

  git clone [email protected]:YOUR_GITHUB_NAME/learngit.git
  cd learngit/
  git remote -v

Add a git remote for the upstream repository

  git remote -v
  git remote add upstream [email protected]:unixmonkey/learngit.git
  git remote -v
  git pull upstream master

Create a topic/feature branch (so you aren't working off of master)

  git checkout -b my_awesome_new_feature
  git branch

Edit some stuff and commit

  vi stuff.md
  vi README.md
  git status
  git add README.md stuff.md
  git status
  git commit
  git status
  git log

Push your changes to your Github fork

  git push origin my_awesome_new_feature

Go to Github and create a pull request from your commit

Wait for change to be merged in by original maintainer

Pull in merged changes

  git checkout master
  git pull upstream master

Delete your local topic branch

  git branch -d my_awesome_new_feature
  git log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published