Hello Developers , Today i will guide about GitHub. I will list some popular command which are generally used.
Git Commands
Command | Description |
git init | Initialize Git |
git clone ssh://[email protected]/[username]/[repository-name].git | Clone/Copy remote repository |
git status | Check Status it will also show what file and changes |
git add [file-name.txt] | Add file to repository |
git add -A | Add all new and changed files to the staging area |
git commit -m “[commit message]” | Commit to repository |
git rm -r [file-name.txt] | Remove a file (or folder) |
git push origin [branch name] | Push a branch to your remote repository |
git pull | Update local repository to the newest commit |
git log | View changes |
git log –summary | View changes (detailed) |
git diff [source branch] [target branch] | Preview changes before merging |
This will helps you when we will deployed our project to AWS from Github. This is just a brief about git command. I will explain when we will work on next post.
Thanks.
Happy Coding.