Skip to content

Commit

Permalink
version-control: init local repository with astronvim
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Sep 15, 2023
1 parent 509c5c6 commit f3edf52
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions docs/version-control/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,35 @@

There are several ways to interact with Git version control, although Practicalli recommends Neogit interactive git client and Octo to manage GitHub issues and pull requests

* [lazygit](lazygit.md) terminal UI, embedded in Neovim (AstroNvim only)
* [Neogit](neogit.md) git client similar to Emacs Magit, with Diffview integration
* [Octo](octo.md) for GitHub Issue and Pull Requests
* [Open in GitHub](open-in-github.md)
- [lazygit](lazygit.md) terminal UI, embedded in Neovim (AstroNvim only)
- [Neogit](neogit.md) git client similar to Emacs Magit, with Diffview integration
- [Octo](octo.md) for GitHub Issue and Pull Requests
- [Open in GitHub](open-in-github.md)
- Shell out to the command line, `:!`
- Git commands in Neovim terminal buffer

> Shell out to the command line, `:!` or use the Neovim terminal buffer to run git commands directly

## Init local repository

=== "AstroNvim"
++spc++ ++"t"++ ++"f"++ opens floating terminal window in the current project directory root (or which ever directory Neovim was started from).

Initialise a local git repository in the current directory.
```shell
git init .
```


## Stage in buffer

=== "AstroNvim"
The current hunk or the whole buffer can be staged from the buffer using Git Signs, saving a trip to the Git Status buffer.
The current hunk or the whole buffer can be staged from the buffer using Git Signs, saving a trip to the Git Status buffer.

++spc++ ++"g"++ ++"H"++ stages the current hunk
++spc++ ++"g"++ ++"H"++ stages the current hunk

++spc++ ++"g"++ ++"S"++ stages the current buffer
++spc++ ++"g"++ ++"S"++ stages the current buffer

=== "Practicalli Neovim Config Redux"

Not supported.


Expand All @@ -42,8 +52,6 @@ The current hunk or the whole buffer can be staged from the buffer using Git Sig
![Neovim Neogit plugin - git status buffer](https://raw.githubusercontent.com/practicalli/graphic-design/live/editors/neovim/screenshots/neovim-neogit-status.png)




## GitHub integration

Interact with the remote GitHub repository using [Octo](octo.md)
Expand Down

0 comments on commit f3edf52

Please sign in to comment.