DeskTux

Linux on Desktops

User Tools

Site Tools


apps:git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
apps:git [2020-07-21 15:35] – Extend git client configuration jensapps:git [2020-07-24 09:34] (current) – [Troubleshooting/Q&A] Add ZSH link jens
Line 49: Line 49:
  
 ===== Troubleshooting/Q&A ===== ===== Troubleshooting/Q&A =====
-  * If you ever wonder what branch you are on, you can just run a ''git status'' to check that.+  * If you ever wonder what branch you are on, you can just run a ''git status'' to check that, or just use my [[:apps:zsh|ZSH]] configuration which will show the current branch.
   * If you use this for [[:apps:puppet|Puppet]] code, you could just create a symlink from the Puppet code directory to your git project:((Providing you used the same structure as mandatory in the [[:apps:puppet#manifests|Puppet]] code directory. Don't forget to backup first!)) <code>ln -sf /srv/git/puppet.git /etc/puppet/code</code>   * If you use this for [[:apps:puppet|Puppet]] code, you could just create a symlink from the Puppet code directory to your git project:((Providing you used the same structure as mandatory in the [[:apps:puppet#manifests|Puppet]] code directory. Don't forget to backup first!)) <code>ln -sf /srv/git/puppet.git /etc/puppet/code</code>
   * In case you forgot to delete your branch on the server, or want to just delete it remotely, you can do that: <code>git push -u origin mybranch --delete</code>   * In case you forgot to delete your branch on the server, or want to just delete it remotely, you can do that: <code>git push -u origin mybranch --delete</code>
apps/git.txt · Last modified: 2020-07-24 09:34 by jens