Posts

Showing posts with the label rebase

Git - Most useful commands.

  Here is a cheat sheet of common Git commands that you may find useful: git init : Initializes a new Git repository in the current directory. git clone <repository> : Clones an existing Git repository from a remote source. git add <file> : Adds a file to the staging area, preparing it for commit. git commit -m "message" : Commits the changes in the staging area with a commit message. git push <remote> <branch> : Pushes the committed changes to the specified remote repository and branch. git pull <remote> <branch> : Pulls the latest changes from the specified remote repository and branch. git branch <name> : Creates a new branch with the specified name. git checkout <branch> : Switches to the specified branch. git merge <branch> : Merges the specified branch into the current branch. git stash : Stashes the current changes, allowing you to switch branches without committing. git stash pop : Applies the stashed changes and r...