Back

Git Commands Usefull

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

More Commands. https://docs.google.com/spreadsheets/d/1nf555NvZAPU0_rTrXlTAzUmMtPSZz8dR67ZKKmrqCz8/edit?gid=197496186#gid=197496186 == To Remove Last Commit and keep the changs== ** git reset HEAD^ === Delete Last commit git reset --hard HEAD^ == To Clone Repositary === git clone https://wasiimakram@bitbucket.org/wasiimakram/ecommerce-react-app.git == To Add existing Repositary to our Project === git remote add origin https://wasiimakram@bitbucket.org/wasiimakram/ecommerce-react-app.git ==The git commit --amend command is a convenient way to modify the most recent commit git commit --amend == Delete Branch localy ------ git branch -d localBranchName == Delete Branch remotely --- git push origin --delete remoteBranchName