Quick Git tutorial

Using Git is simple and so I’m keeping this very short.

1. Github.com is not git

2. You only need to learn these six commands to get started:

  • add
  • commit
  • push
  • pull
  • clone
  • status

3. push is akin to uploading your files to the server (for safe-keeping). Before pushing you’ve to write a comment about what you want to push using the commit command. pull is akin to getting your files from the server.

4. Learn these two commands after you’re conversant with the first six commands:

  • branch
  • checkout

5. Graphical tools can help you visualise how and when changes happened. I like git-fork.com on Macs. Visual Studio Code and various code editors have git integration.

Leave a Reply