Files
30-seconds-of-code/snippets/view-status.md
Isabelle Viktoria Maciohsek ed2f41b0d8 Bake dates into snippets
2021-06-13 19:47:48 +03:00

710 B

title, tags, firstSeen, lastUpdated
title tags firstSeen lastUpdated
View current status branch,beginner 2021-04-06T20:58:33+03:00 2021-04-13T21:10:59+03:00

Prints the current status of the working tree.

  • Use git status to view the current status of the working tree.
  • You can optionally add the -sb flag to view the short form of the same output
git status [-sb]
git status
# On branch patch-1
# Your branch is up to date with 'origin/patch-1'.
#
# Untracked files:
#  (use "git add <file>..." to include in what will be committed)
#  30-seconds.txt
#
# nothing added to commit but untracked files present (use "git add" to track)

git status -sb
# ## patch-1...origin/patch-1
# ?? 30-seconds.txt