git init
git status
git add file
git add someProgram.java
Add all files of a certain filetype:
git add *.filetype
Example: git add *.java
git commit -m "Message describing the files and changes in current commit"
git log
git branch createCertainFeatureName
git checkout main git checkout branchNamegit checkout commitID If the remote repositry is ahead of local repositry, do:
git pull
Then, we have to commit intended changes before we can do:
git push