сервис_git

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_git [2023/07/28 08:15]
val [On-Premise gitlab]
сервис_git [2025/01/10 06:20] (current)
val [On-Premise gitlab]
Line 20: Line 20:
  
 server:~$ cd conf/ server:~$ cd conf/
 +  или
 +server:~$ git -C conf/ ...
  
 server:​~/​conf$ echo Hello World > file1 server:​~/​conf$ echo Hello World > file1
Line 61: Line 63:
  
 server:​~/​conf$ git diff <commit hash N> <commit hash M> file1 server:​~/​conf$ git diff <commit hash N> <commit hash M> file1
 +
 +server:​~/​conf$ git reset --hard <commit hash N>
 </​code>​ </​code>​
  
Line 118: Line 122:
  
   * [[https://​stackoverflow.com/​questions/​6565357/​git-push-requires-username-and-password|Git push requires username and password]]   * [[https://​stackoverflow.com/​questions/​6565357/​git-push-requires-username-and-password|Git push requires username and password]]
 +  * [[https://​stackoverflow.com/​questions/​5480258/​how-can-i-delete-a-remote-tag|How can I delete a remote tag?]]
  
 <​code>​ <​code>​
Line 123: Line 128:
  
 $ git remote remove origin $ git remote remove origin
 +$ ### git remote rename origin old-origin
  
 $ git remote add origin http://​server.corpX.un/​student/​dhcp.git $ git remote add origin http://​server.corpX.un/​student/​dhcp.git
 +$ ### git remote add origin http://​server.corpX.un:​3000/​student/​dhcp.git
 $ ### git remote add origin git@server.corpX.un:​student/​gowebd.git $ ### git remote add origin git@server.corpX.un:​student/​gowebd.git
  
Line 140: Line 147:
  
 $ git tag $ git tag
 +
 +$ ###git tag -d ver1.3
 +$ ###git push --delete origin ver1.3
 </​code>​ </​code>​
  
Line 182: Line 192:
 <​code>​ <​code>​
 # git clone http://​server.corpX.un/​student/​dhcp.git # git clone http://​server.corpX.un/​student/​dhcp.git
 +
 +  или
 +
 +# git clone http://​server.corpX.un:​3000/​student/​dhcp.git
  
   или   или
сервис_git.1690521345.txt.gz · Last modified: 2023/07/28 08:15 by val