Is production: true

Git

Git is a distributed version control software system that manages versions of source code or data, often used by programmers for collaborative software development. It was originally created by Linus Torvalds for version control in the development of the Linux kernel.

Key characteristics and design goals of Git include speed, data integrity, and support for distributed, non-linear workflows. Unlike client-server systems, Git maintains a local copy of the entire repository, including its history and version-tracking abilities, independent of network access or a central server. It is free and open-source software released under the GNU General Public License version 2. Git is the most commonly used version control system by software developers, with nearly 95% reporting it as their primary system as of 2022.

Web Site

Tools

  • Git command-line interface
  • GitHub, GitLab, Bitbucket (hosting platforms)
  • Git GUI clients (e.g., GitKraken, SourceTree)
  • IDEs with Git integration

Command Line

Basic

Create a raw git project

Initialize a project

1
git init

Create branch managing

Basic Branch Managing

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

# Create a new branch base on existing branch
git branch -c {new branch name}

# Show all the branch
git branch 

# Show the working director status
git status 

# Add modified or new file to staged
git add . # for all file
git add {file path} # add specific file

# Commit by putting the message in command line
git commit -m "{message to commit}"
git commit # calling the default editor to commit to the files