Skip to content
Snippets Groups Projects
Commit d618c482 authored by FILIPPONE Jerome's avatar FILIPPONE Jerome
Browse files

Upload New File

parent cd395055
No related branches found
No related tags found
No related merge requests found
~$ cd
~$ git config --global --get-all credential.helper
store --file ~/.git-credentials
~$ git config --global --add credential.helper "store --file ~/.git-credentials"
~$ gedit ~/.git-credentials&
https://votre_login:votre_jeton@gitlab.univ-lorraine.fr
~$ chmod 0600 ~/.git-credentials
~$ ls -l ~/.git-credentials
-rw------- 1 filippon1 filippon1 56 nov. 24 04:39 /home/filippon1/.git-credentials
~$ cd
~$ mkdir EX04
~$ cd EX04
~/EX04$ git clone https://gitlab.univ-lorraine.fr/filippon1/projet1.git
Cloning into 'projet1'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 26 (delta 2), reused 0 (delta 0), pack-reused 15
Receiving objects: 100% (26/26), 11.12 KiB | 11.12 MiB/s, done.
Resolving deltas: 100% (6/6), done.
~/EX04$ ls -l
total 4
drwxrwxr-x 3 filippon1 filippon1 4096 nov. 24 06:49 projet1
~/EX04$ cp -R projet1/ projet1_dev1
~/EX04$ cp -R projet1/ projet1_dev2
~/EX04$ cp -R projet1/ projet1_dev
~/EX04$ ls -l
total 16
drwxrwxr-x 3 filippon1 filippon1 4096 nov. 24 06:49 projet1
drwxrwxr-x 3 filippon1 filippon1 4096 nov. 24 06:50 projet1_dev
drwxrwxr-x 3 filippon1 filippon1 4096 nov. 24 06:49 projet1_dev1
drwxrwxr-x 3 filippon1 filippon1 4096 nov. 24 06:50 projet1_dev2
~/EX04$ cd projet1_dev1
~/EX04/projet1_dev1$ git branch -a
* main
remotes/origin/HEAD -> origin/main
remotes/origin/dev
remotes/origin/dev1
remotes/origin/dev2
remotes/origin/main
remotes/origin/test
~/EX04/projet1_dev1$ git checkout dev1
Branch 'dev1' set up to track remote branch 'dev1' from 'origin'.
Switched to a new branch 'dev1'
~/EX04/projet1_dev1$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment