meta data for this page
  •  

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
git:start [2023/05/30 10:28] niziakgit:start [2024/12/11 12:24] (current) niziak
Line 2: Line 2:
  
 ====== Preparation ====== ====== Preparation ======
 +
 +===== bash completion =====
 +
 +[[https://git-scm.com/book/en/v2/Appendix-A:-Git-in-Other-Environments-Git-in-Bash|A1.6 Appendix A: Git in Other Environments - Git in Bash]]
 +
 +Package ''git'' contains:
 +<code>
 +/etc/bash_completion.d/git-prompt
 +/usr/share/bash-completion/completions/git
 +/usr/share/bash-completion/completions/gitk
 +</code>
 +
 +<file bash ~/.bashrc>
 +. /usr/share/bash-completion/completions/git
 +. /usr/lib/git-core/git-sh-prompt
 +
 +if [ "$color_prompt" = yes ]; then
 +#   PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 +    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 "(%s)")\[\033[00m\]\$ '
 +else
 +#   PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 +    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\'$(__git_ps1 "(%s)")'\$ '
 +fi
 +</file>
 +
 +
  
 === git-email === === git-email ===
Line 10: Line 36:
 </code> </code>
  
-=== replace github's git:// links === +=== replace github's git: links === 
-NOTE: Github was disabled git protocol. So only https:// or ssh is valid.+NOTE: Github was disabled git protocol. So only ''https:'' or ssh ''git@'' is valid.
  
 <code bash> <code bash>
Line 19: Line 45:
 </code> </code>
  
-Keywords: git protocol, git:// protocol+Keywords: git protocol, ''git:'' protocol
  
 === replace github https links === === replace github https links ===