#git essentials #git commands
git checkout -b "branch_name"
git remote add repository_name <code_url>
--> Switch to the branch to merge and use: git merge main_branch
git push repository_name branch_name
--> Create a file and commit the changes and push to the remote(repository). git push repository_name
--> Firstly add the file. --> Commit the changes. --> Push the changes to remote. git push repos_name
git branch --delete branch_name git push repos_name --delete branch_name
--> remove the file locally. --> commit the changes. --> push the changes remotely. git rm file_name git commit -m "message" git push repos_name file_name