Skip to content

Basic Git commands to push and clone your first projects on GitHub, intermediate commands when forking and using branches, and advanced commands for merge conflicts and inevitable mistakes.

Notifications You must be signed in to change notification settings

Kernix13/beginner-git-commands

Repository files navigation

Beginner Git commands

GitHub forks GitHub commit activity GitHub contributors

If you are just starting using Git and GitHub then make sure you understand how and when to use the commands in BEGINNER_GIT.md.

The file INTERMEDIATE_GIT.md will be useful when you start creating branches and pushing them to GitHub. That file also has notes on Gists, GitHub pages, and other useful tips.

The file ADVANCED_GIT.md has useful notes on forking and cloning a open-soure repository for the purpose of contributing. It includes notes on:

  • GitHub Issues
  • Pull Requests
  • Merge conflicts
  • Undoing mistakes
  • Detailed notes on specific git commands.

Finally, details.md describes the various commands in more detail.

The basic steps you need in the beginning are:

  1. Download and install Git (one time ony)
  2. Generate an SSH key to authenticate your machine with GitHub
  3. Create an empty repo on GitHub
  4. Initialize Git in a project folder
  5. Make changes or create a file
  6. Add the changes to staging
  7. Commit the changes
  8. Push your changes or project files to your repo

If you created any files on Github, then you will have to use git pull before you can do a git push. So in the beginning, don't create any files on GitHub.

About

Basic Git commands to push and clone your first projects on GitHub, intermediate commands when forking and using branches, and advanced commands for merge conflicts and inevitable mistakes.

Topics

Resources

Stars

Watchers

Forks