# Git

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/llms.txt).

Git

How to efficiently use Git integration in GoLand

- [Set up a Git repository](https://www.jetbrains.com/help/go/set-up-a-git-repository.html.md): Clone a repository or put your local project under Git version control
- [Use Git worktrees](https://www.jetbrains.com/help/go/use-git-worktrees.html.md): Work on several branches at the same time in separate directories

## Sync with a remote repository

- [Sync with a remote Git repository (fetch, pull, update)](https://www.jetbrains.com/help/go/sync-with-a-remote-repository.html.md): Update a branch or a whole project
- [Commit and push changes to Git repository](https://www.jetbrains.com/help/go/commit-and-push-changes.html.md): Share the results of your work
- [Merge, rebase, or cherry-pick to apply changes](https://www.jetbrains.com/help/go/apply-changes-from-one-branch-to-another.html.md): Integrate your changes from one branch into another
- [Resolve Git conflicts](https://www.jetbrains.com/help/go/resolve-conflicts.html.md): Use GoLand tools for resolving conflicts locally

## Work with changes

- [Add files to Git and track changes](https://www.jetbrains.com/help/go/adding-files-to-version-control.html.md): Track changes to a file in the editor
- [Undo changes in Git repository](https://www.jetbrains.com/help/go/undo-changes.html.md): Revert uncommitted or pushed changes
- [Group changes into changelists](https://www.jetbrains.com/help/go/managing-changelists.html.md): Manage local changes before committing them to a repository
- [Shelve or stash changes](https://www.jetbrains.com/help/go/shelving-and-unshelving-changes.html.md): Shelve or stash your pending changes

## View and edit history

- [Investigate changes in Git repository](https://www.jetbrains.com/help/go/investigate-changes.html.md): Enable annotations and trace back all changes in the log tab
- [Edit Git project history](https://www.jetbrains.com/help/go/edit-project-history.html.md): Edit commit messages, amend, squash, and drop commits
- [Compare file and folder versions using Diff viewer](https://www.jetbrains.com/help/go/comparing-file-versions.html.md): Examine the differences between two revisions of a file/folder

## Review code

- [Review incoming GitHub pull requests](https://www.jetbrains.com/help/go/work-with-github-pull-requests.html.md): Create, review, comment, and merge pull requests
- [Review incoming GitLab merge requests](https://www.jetbrains.com/help/go/work-with-gitlab-merge-requests.html.md): Create, review, comment, and accept merge requests

