Blog

  • Some git commands to remember

    Here is a list of Git commands that you should remember that will use more commonly.Git Clonegit clone <repo> # Clone repogit status # Check which branch you are working onGit Create & Push Branchgit checkout -b <branch_name> # Create local branchgit push <remote_name> <branch_name> # Push branch to git, <remote-name> = "origin"git add --all # Add changes to clonegit commit -m "string message" # Commit changesGit Rename Branchgit branch -m my-hot-feature feature-15 # Rename branch localygit remote -v # Get remote namegit push origin :<old_branch_name> # Delete the remote branch with the old namegit push origin <new_branch_name> # Re-create the remote branch with the new nameGit Delete Branchgit branch -d <branch_name> # Delete branch l...