User Tools

Site Tools


informatique:linux:git

Git

git init

Pour voir l'origine : git remote -v

$(ANSIBLE_GALAXY) install -r roles/requirements.yml -f -p roles
   12  git config --global http.proxy http://proxy:8080/
   13  git clone https://github.com/dell/dellemc-openmanage-ansible-modules.git
   14  cd dellemc-openmanage-ansible-modules/
   15  ls
   16  git remote -v
   17  vi .git/config 
   18  git remote -v
   19  git status
   20  vi .git/config 
   21  git remote rename origin old-origin
   22  git remote add origin https://gitlabinterne/monusername/dellemc-openmanage-ansible-modules.git
   23  git push -u origin --all
   24  git config --global --unset-all http.proxy
   25  git push -u origin --all
   26  git config --global http.sslVerify false
   27  git push -u origin --all
   28  git push -u origin --tags
toujours faire un "git pull" avant de commencer quoi que ce soit le matin
attention à la branche, ne jamais commit dans la branche master

 4107  06/02/19 11:31:02 git commit -m "+ database-backup"
 4108  06/02/19 11:31:08 git push
 4109  06/02/19 11:34:47 git pull
 4110  06/02/19 11:35:16 git checkout
 4111  06/02/19 11:35:30 git checkout branch
 4112  06/02/19 11:35:44 git checkout -b
 4113  06/02/19 11:35:59 git checkout branch -v
 4114  06/02/19 11:36:09 git branch
 4115  06/02/19 11:36:20 git checkout backup-db
 4116  06/02/19 11:36:34 ls -lart
 4117  06/02/19 11:36:42 rm -rf ansible python
 4118  06/02/19 11:36:44 ls -lart
 4119  06/02/19 11:36:47 git add .
 4120  06/02/19 11:36:56 git add --all
 4121  06/02/19 11:37:04 git commit -m "cleaning path"
 4122  06/02/19 11:37:09 git push
 4123  06/02/19 11:40:41 ls -lart
 4124  06/02/19 11:40:50 git checkout master
 4125  06/02/19 11:40:52 ls -lart


git config --global user.email "didier.loussouarn@externes.justice.gouv.fr"
git config --global user.name "ex.didier.loussouarn"
git config --global credential.helper wincred
git config --global http.sslVerify false


cp -r `ls -Ad ../../gitlab-dea/project-post-install-win/* | egrep -v ".git"` ./

git -c http.sslVerify=false clone

git config -l

git checkout -b develop
git push origin develop -u

si pas -u : git push --set-upstream origin develop

git branch -a


git config --local remote.origin.url "https://dev.gitlab.etd.intranet.justice.gouv.fr/supervision/ansible-roles/antivirus-client-win.git"

--
cd antivirus-client-win/
git config --local remote.origin.url "https://dev.gitlab.etd.intranet.justice.gouv.fr/supervision/ansible-roles/antivirus-client-win.git"
git config -l
git checkout -b develop
git push origin develop -u
cp -r `ls -Ad ../../../gitlab-dea/ansible-roles/antivirus-client-win/* | egrep -v "^.git$"` ./
cp ../../../gitlab-dea/ansible-roles/antivirus-client-win/.yamllint .
git status
git add README.md .yamllint
git add defaults meta tasks
git status
git commit -m "copie des fichiers et dossiers gitlab dea"

git push
--
informatique/linux/git.txt · Last modified: 2020/06/16 14:00 by didzkovitchz