Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 456 Bytes

git-commands.md

File metadata and controls

20 lines (15 loc) · 456 Bytes

Git Commands

How to create a branch

git checkout -b "<branch-name>"

How to commit the asssignment/activity

git checkout main
git checkout -b "module-1/activity-1"
git add *
git commit -m "complete activity 1"
git push

if git push gives you fatal: The current branch <branch-name> has no upstream branch., then run the command suggested in the message. would look like git push --set-upstream origin <branch-name>