Skip to content

amitmh/hello-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Terms

  1. Repository (remote & local):
  2. Branch (remote & local)
  3. checkout, diff, tags and commit
  4. clone, push and pull
  5. merge, rebase, apply patch

Workflow

Git Workflow

example

  1. [incase of doubt use git status]
  2. git clone [email protected]:amitmh/hello-git.git
  3. [a] checkout -b branch-name
  4. [b] do your changes; say in README.md
  5. [a] git status should give you modified file name
  6. [b] git diff README.md this will give you changes with respect to master.
  7. [c] git add README.md
  8. $git commit -am 'add this comment'
  9. $git push --set-upstream origin branch-name this will upload changes to remote
  10. [a] to merge changes in master raise pull request or
  11. [b][1] git checkout master
  12. [b][2] git merge feature
  13. [b][3] git push

About

GIT in 5mins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published