From cacaa0786ad8f89abc7deb6e69f6e65904e78a54 Mon Sep 17 00:00:00 2001 From: "t.gateau" <thibault.gateau@isae.fr> Date: Tue, 9 May 2023 16:16:48 +0200 Subject: [PATCH] [doc] default readme page --- git/readme.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 git/readme.md diff --git a/git/readme.md b/git/readme.md new file mode 100644 index 0000000..59b9e86 --- /dev/null +++ b/git/readme.md @@ -0,0 +1,43 @@ + +## Command line instructions + +You can also upload existing files from your computer using the instructions below. +Git global setup + +``` +git config --global user.name "Perfect Johnny" +git config --global user.email "johnny.perfect@isae.fr" +``` + +## Create a new repository (johnny-project) + +``` +git clone git@gitlab.isae-supaero.fr:saclab/dss/students/johnny-project.git +cd default-page +touch README.md +git add README.md +git commit -m "[doc] add README" +git push -u origin master +``` + +## Push an existing folder + +``` +cd existing_folder +git init +git remote add origin git@gitlab.isae-supaero.fr:saclab/dss/students/johnny-project.git +git add . +git commit -m "[doc] Initial commit" +git push -u origin master +``` + +## Push an existing Git repository + +``` +cd existing_repo +git remote rename origin old-origin +git remote add origin git@gitlab.isae-supaero.fr:saclab/dss/students/johnny-project.git +git push -u origin --all +git push -u origin --tags +``` + -- GitLab