Development
git
Track source code changes and collaborate with repositories.
version-controlrepositorycommitbranch
Additional Notes
git is a development command used to track source code changes and collaborate with repositories. It supports branching, merging, distributed workflows, and integration with remote hosting services like GitHub and GitLab. Most operations run locally, making it fast even without network access.
Syntax
git [options] [arguments]
Parameters
options: Flags that change howgitbehaves.source-or-target: File, binary, object, or project target to inspect or process.arguments: Tool-specific build, debug, or inspection parameters.
Common Options
status: Show working tree state.add PATH: Stage changes.commit: Record staged changes.log: Show commit history.branch: List or manage branches.checkoutorswitch: Change branches.
Examples
git status
git add README.md
git commit -m "Update docs"
git log --oneline
Practical Notes
Git has many subcommands. Start with status, add, commit, log, diff, branch, and switch.