Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:git [2020/06/05 10:02] – [Basic usage] tmadelinux:git [2020/09/26 16:52] – [Basic usage] tmade
Line 56: Line 56:
   ssh-add /home/myuser/.ssh/id_rsa   ssh-add /home/myuser/.ssh/id_rsa
   git remote add gitlab git@git.local:myuser/kubernetes.git            #"gitlab" = name you can choose   git remote add gitlab git@git.local:myuser/kubernetes.git            #"gitlab" = name you can choose
-  git remote add origin ssh://git@hostname:8822/tmade/icinga.git+  git remote add origin ssh://git@hostname:8822/tmade/myrepo.git 
 +  git remote set-url origin ssh://git@hostname:8822/tmade/myrepo.git   #rename origin
   git remote                                                           #check, if remote location exists (test/ prod)   git remote                                                           #check, if remote location exists (test/ prod)
   git remote -v   git remote -v
Line 62: Line 63:
   git add .                                                            #or "git add kubeadm-config.yaml"   git add .                                                            #or "git add kubeadm-config.yaml"
   git commit -m "initial commit"                                       #to the previously created project on e. g. gitlab   git commit -m "initial commit"                                       #to the previously created project on e. g. gitlab
-  git push gitlab master                                               #gitlab target-server+  git push gitlab master                                               #update changes to master 
 +  git pull origin master                                               #pull changes from master
linux/git.txt · Last modified: 2024/04/16 17:38 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki