learning git i guess
Commands used in this would be:
- git add files :
- To add files to staging area
- git status :
- To check the files in staging area
- git commit -m 'message' :
- To commit on to local machine
- Git push :
- To push the changes to remote repo
- git branch :
- To check all the available branches
- add -d branchName to delete a branch
- git checkout branchName :
- To change the branches
- add -b branchName to create and switch branches
- git pull :
- to pull the changes from remote
- there can be merge conflicts while doing this so be sure to solve them
- git rebase origin main :
- to rebase the commits of main branch to your branch
- git log :
- to check logs
- git commit --ammend -m 'new message' :
- to change the last commit message
- git push --set-upstream origin branchName :
- to upload the branch to remote with all the new changes
Yea thats about all the commands used while doing this
Thanks~
Aayush