Gitlab client: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Command line instructions= You can also upload existing files from your computer using the instructions below. =Git global setup= git config --global user.nam…“)
 
Zeile 2: Zeile 2:
 
You can also upload existing files from your computer using the instructions below.
 
You can also upload existing files from your computer using the instructions below.
 
=Git global setup=
 
=Git global setup=
git config --global user.name "Max Mustermann"
+
*git config --global user.name "Max Mustermann"
git config --global user.email "max.mustermann@xinux.de"
+
*git config --global user.email "max.mustermann@xinux.de"
  
 
=Create a new repository=
 
=Create a new repository=
git clone https://git.flipper.de/max.mustermann/openvpn.git
+
*git clone https://git.flipper.de/max.mustermann/openvpn.git
cd openvpn
+
*cd openvpn
touch README.md
+
*touch README.md
git add README.md
+
*git add README.md
git commit -m "add README"
+
*git commit -m "add README"
git push -u origin master
+
*git push -u origin master
  
 
=Push an existing folder=
 
=Push an existing folder=
cd existing_folder
+
*cd existing_folder
git init
+
*git init
git remote add origin https://git.flipper.de/max.mustermann/openvpn.git
+
*git remote add origin https://git.flipper.de/max.mustermann/openvpn.git
git add .
+
*git add .
git commit -m "Initial commit"
+
*git commit -m "Initial commit"
git push -u origin master
+
*git push -u origin master
  
 
=Push an existing Git repository=
 
=Push an existing Git repository=
cd existing_repo
+
*cd existing_repo
git remote rename origin old-origin
+
*git remote rename origin old-origin
git remote add origin https://git.flipper.de/max.mustermann/openvpn.git
+
*git remote add origin https://git.flipper.de/max.mustermann/openvpn.git
git push -u origin --all
+
*git push -u origin --all
git push -u origin --tags
+
*git push -u origin --tags
~
 

Version vom 25. Mai 2020, 18:40 Uhr

Command line instructions

You can also upload existing files from your computer using the instructions below.

Git global setup

  • git config --global user.name "Max Mustermann"
  • git config --global user.email "max.mustermann@xinux.de"

Create a new repository

Push an existing folder

Push an existing Git repository