Git – Commands Part 1

  • git config –global user.email “email” – Your email address to be recorded in any newly created commits.
  • git config –global user.name “username” – Your full name to be recorded in any newly created commits.
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ
this is important before any commit
  • git init– Initialize a local Git repository in the directory you are
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ
  • git status – Shows the status and any changes
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ

Create a README.md as mark down format.

git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ

Now check again the git status.

git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ

With red color is the files that are untracked. So we need to add the file to repository with git add README.md

  • git add – Add file contents to the index
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ
  • git commit -m “commit message”
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ
  • git log – Show commit logs
git commands init commit log status add, <span>Git – Commands  Part 1</span>, KandZ

END OF PART 1

90110cookie-checkGit – Commands Part 1Git – Commands Part 1

Related posts

5 Thoughts to “Git – Commands Part 1

  1. […] Git – Commands Part 1 […]

Comments are closed.