Status, add, commit, pull and push commands - UnbDroid/AprendendoGithub GitHub Wiki

Now, the basic commands that we are going to use are

  • $ git status
  • $ git add
  • $ git commit
  • $ git pull
  • $ git push

Add and commit

If you have just created a new repository or cloned, your workspace is clean. To know if your workspace is clean, just type git status and if there is the message working directory clean then your workspace is clean.

  • The command git status show informations about the files modified.
  • The command git add move some file from Box A to Box B
  • The command git commit move all the files from Box B to Box C
  • The command git pull verifies if there is any changes between your last commit and the Remote Repository
  • The command git push makes a upload of your commits to the Remote Repository

Credits

The frist image