Git: Difference between revisions
import>User3412 improve the article 2 |
import>User3412 forgot to add more details |
||
Line 19: | Line 19: | ||
==Conclusion== | ==Conclusion== | ||
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 and | 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 |
Revision as of 20:38, 20 May 2022
An really good and best repository control software
Beginner guide (cli)
First, make an folder,on both linux and windows,you just run
mkdir example
(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
cd folder-name
or
chdir folder-name
to change directory (replace folder-name with the name of the folder that you created) next, run
git init
in the command-line (you must be on the directory of your repo folder) to initialize/create an git repository after that, run
git add .
once you added some files for the commit lastly but not least, run
git commit -m "Intial commit"
(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 (")))
now once you created your first git repository,put them into your web server and optionally use cgit so that is easy to view the source or if not using cgit,make an instructions like this: git clone webserver.com/repo.git (replace webserver.com with the domain and replace repo with the repo name, or if using ip to share repo,make an instructions like this: git clone 1.2.3.4/repo.git (replace 1.2.3.4 with the ip you shared and/or the ip you found and replace repo with the repo name
Conclusion
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
Website :https://git-scm.com
Reviews
user3412: 10/10