Skip to content

Instantly share code, notes, and snippets.

@michaeljymsgutierrez
Last active March 25, 2017 02:57
Show Gist options
  • Save michaeljymsgutierrez/b0163b36e962615b9966ee06a061da62 to your computer and use it in GitHub Desktop.
Save michaeljymsgutierrez/b0163b36e962615b9966ee06a061da62 to your computer and use it in GitHub Desktop.
GIT Commands
  • git status
    • checked if files are modified
    • checked if there are untracked files
    • Example: git status
  • git add filename_and_extenstion
    • add files to commit to push in repo
    • include directory if necessary
    • Example:
      • after git status you see "modified: profiles/bms/modules/bms/angularjs_bms/js/controllers.js"
      • git add profiles/bms/modules/bms/angularjs_bms/js/controllers.js
    • Note you can add all by executing this command
      • git add -a
  • git commit -m "commit_description"
    • adding commit message
    • Example:
      • after git add profiles/bms/modules/bms/angularjs_bms/js/controllers.js
      • git commit -m "Update some function in controllers"
  • git push origin branch_name
    • this will now push your changes from local repo to remote repo
    • Example:
      • git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment