Skip to content

Instantly share code, notes, and snippets.

@mahmoud-193
Forked from gwenf/git-commands.md
Created March 11, 2023 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud-193/0eed1ed48ceb0c21e8147e3244e925bc to your computer and use it in GitHub Desktop.
Save mahmoud-193/0eed1ed48ceb0c21e8147e3244e925bc to your computer and use it in GitHub Desktop.
  • repo -> repository

  • clone -> bring a repo down from the internet (remote repository like Github) to your local machine

  • add -> track your files and changes with Git

  • commit -> save your changes into Git

  • push -> push your changes to your remote repo on Github (or another website)

  • pull -> pull changes down from the remote repo to your local machine

  • status -> check to see which files are being tracked or need to be commited

  • init -> use this command inside of your project to turn it into a Git repository and start using Git with that codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment