This wiki has been permanently archived. As such, editing and registration have been closed.

Git

From CollabVM Wiki, the horrible, autism-inducing, trash filled wiki, featuring people who can't speak English
Revision as of 20:22, 20 May 2022 by import>User3412 (Created page with "An really good and best repository control software ==Beginner guide== First, make an folder,on both linux and windows,you just run <pre>mkdir example</pre> (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 <pre>cd folder-name</pre> or <pre>chdir folder-name</pre> to change directory (replace ''folder-name'' with the nam...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

An really good and best repository control software

Beginner guide

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

Reviews

user3412: 10/10