...
These are the ones that are probably most useful to developers on Solar starting out. A more in-depth cheatsheet can be found here or here or here.
Command | Description |
---|---|
git clone <link> | Creates a copy of a repository from a specified link and downloads it to the local machine. |
git pull | Fetches changes from a remote repository and merges them into the current branch. |
git add <file> | Stages specific files or folders in the working directory for the next commit. |
git add -A | Stages all changes, including untracked files and deletions, in the working directory for the next commit. |
git add . | Stages all changes in the current directory for the next commit. |
git commit | Records changes in the staged area, creating a new commit. Opens the default text editor for the user to specify a commit message. |
| Records changes in the staged area, creating a new commit with a commit message specified in the command itself. |
| Pushes local commits to a remote repository, updating the remote branch with the latest changes. |
| Unstages changes for a specific file, reverting them from the staging area. |
| Discards changes in the working directory for a specific file, reverting it to the state of the last commit. |
| Displays the status of changes as untracked, modified, or staged in the working directory. |
| Lists all local branches and highlights the currently active branch. |
| Lists all branches including remote branches. |
| Creates a new branch with the specified name. |
| Switches between branches or restores working tree files. |
| Creates a new branch and switches to it in a single command. |
| Merges changes from a specified branch into the current branch. |
| Shows the differences between the working directory and the staging area. |
| Displays the differences between the staging area and the last commit. |
| Fetches changes from a remote repository without merging them into the local branches. |
| Displays the commit history, showing details like commit messages, authors, and timestamps. |
| Displays a simplified one-line commit history, showing abbreviated commit hashes and commit messages. |
| Temporarily saves changes that are not ready to be committed, allowing you to switch branches or perform other tasks. |
| Shows a list of stashed changes, including stash IDs and descriptions. |
| Applies the latest stash and removes it from the stash list. |
...