Difference between revisions of "Git status"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 75: | Line 75: | ||
== See also == | == See also == | ||
+ | * {{git status}} | ||
* {{git}} | * {{git}} | ||
[[Category:Git]] | [[Category:Git]] |
Revision as of 19:39, 8 March 2023
git status
Steps:git add
->git commit
->git push
Examples
git status On branch master nothing to commit, working tree clean
git status -v On branch your-branch nothing to commit, working tree clean
git status On branch master No commits yet Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: new_file_1.txt new file: new_file_2.txt new file: new_file_3.txt
git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean
git status On branch main Your branch is up to date with 'origin/main'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: MyModifiedFile.txt modified: MyOtherModifiedFile.txt no changes added to commit (use "git add" and/or "git commit -a")
git status fatal: not a git repository (or any of the parent directories): .git
git status HEAD detached from origin/your-branch-name nothing to commit, working tree clean
On branch feature/your-branch Your branch is up to date with 'origin/feature/your-branch'. Untracked files: (use "git add <file>..." to include in what will be committed)
../../path/path4/
nothing added to commit but untracked files present (use "git add" to track)
Related terms
git diff
git add
,git commit
git init
,git remote
Master
git push
git pull
- https://stackoverflow.com/questions/tagged/git-status?tab=Votes
See also
git status
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: