skip to content
Ivan's wiki
Site Tools
Search
Tools
Show pagesource
Backlinks
Recent Changes
Media Manager
Sitemap
>
Recent Changes
Media Manager
Sitemap
gist-git
This page is read only. You can view the source, but not change it.
# Git (Examples) ## Basics Creating a repository with an initial commit: ``` git init ``` Adding a file to the staging area: ``` git add file.txt ``` Un-adding a file from the staging area: ``` git restore --staged file.txt ``` Showing what's in the staging area: ``` git status ``` Creating a commit: ``` git commit -m 'add: feature' ``` ## Stashing Stashing changes in the staging area: ``` git stash ``` Restoring stashed changes: ``` git stash pop ``` Giving up on stashed changes (dropping them): ``` git stash drop ```
Page Tools
Show pagesource
Backlinks
Back to top