Git: Difference between revisions
import>User3412 forgot to add more details |
m 20 revisions imported |
||
(15 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
An really good and best repository control software | An really good and best repository control software | ||
it is very popular incase because it is open-source | |||
it was created by Linus Torvalds (the linux kernel creator) in 2005 for development of the linux kernel | |||
it was inspired by the then-propietary BitKeeper and Monotone | |||
==Beginner guide (cli)== | ==Beginner guide (cli)== | ||
First, make an folder,on both linux and windows,you just run < | First, make an folder,on both linux and windows,you just run <nowiki>mkdir example</nowiki> (replace ''example'' with the name of the folder that you want) to create an folder in the current directory using command-line | ||
after that,go to your newly created folder,using command line, just run < | after that,go to your newly created folder,using command line, just run <nowiki>cd folder-name</nowiki> or <nowiki>chdir folder-name</nowiki> to change directory (replace ''folder-name'' with the name of the folder that you created) | ||
next, run < | next, run <nowiki>git init</nowiki> in the command-line (you must be on the directory of your repo folder) to initialize/create an git repository | ||
after that, run < | after that, run <nowiki>git add .</nowiki> once you added some files for the commit | ||
lastly but not least, run < | lastly but not least, run <nowiki>git commit -m "Intial commit"</nowiki> (feel free to customize the commit text by replacing ''Intial commit'' with the text you want) | ||
all the git commands must be run in an terminal (for linux X.org clients,use the terminal emulator provided with the DE,use xterm or use another terminal emulator that works for you and for linux wayland clients,use weston-terminal for weston or use another terminal emulator compatible with wayland (if you want to run X.org terminal emulators with no wayland compability,install and enable Xwayland (for arch linux, its "pacman -S xorg-xwayland" without quotes ("))) | all the git commands must be run in an terminal (for linux X.org clients,use the terminal emulator provided with the DE,use xterm or use another terminal emulator that works for you and for linux wayland clients,use weston-terminal for weston or use another terminal emulator compatible with wayland (if you want to run X.org terminal emulators with no wayland compability,install and enable Xwayland (for arch linux, its "pacman -S xorg-xwayland" without quotes ("))) | ||
Line 21: | Line 27: | ||
it is very good,but it is very hard to learn since its cli-based,but however to view an repo without git program,one can use cgit and theres some 3rd-party git guis but if you want for a official one,also bundled,just use git-gui for commiting and gitk for browsing | it is very good,but it is very hard to learn since its cli-based,but however to view an repo without git program,one can use cgit and theres some 3rd-party git guis but if you want for a official one,also bundled,just use git-gui for commiting and gitk for browsing | ||
==Links | ==Links== | ||
Website: https://git-scm.com |