Posted by The TechMentor in git
on Feb 6th, 2019
1. list all remote tags git ls-remote --tags 2. delete local tag git tag -d V_1_0_1 3. push tag deletion to remote git push origin :refs/tags/V_1_0_1 4. tag local branch again git tag V_1_0_1 5. push tag to remote git push origin tag V_1_0_1
Posted by The TechMentor in git, Journal
on Aug 8th, 2014
Using Backwater as the remote server, su to gitpriv and change into the repo directory. $ sudo su - gitpriv $ cd gitrepo Here there are some top-level repos already, as well has some directories that contain like repos. These include “c-code” and “web.” If creating a repo to store a web app, change into the web directory and create an empty repo. Be sure it has a “.git” extension. Here I am creating a repo to store the pydio app for LiM. $ cd web $ git init --bare --shared lim.pydio.git Now that that is done, the empty repo must be copied to the system where work...
Posted by The TechMentor in git
on Apr 7th, 2014
# Revert changes to modified files. git reset --hard # Remove all untracked files and directories. git clean -fd If you want to revert the changes only in current working directory, use git checkout -- .
Posted by The TechMentor in git, System Configuration
on Apr 7th, 2014
Setup RPMForge Repository $ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm $ rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt $ rpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpm $ sudo rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm Disable CentOS Base Repository and Enable RPMForge Extras $ cd /etc/yum.repos.d/ $ sudo vi CentOS-Base.repo Add enabled = 0 [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ enabled = 0...
Posted by The TechMentor in git
on Mar 19th, 2014
Determine the version of the file (.git-include is used in this example) that is needed $ git lds .git-include 76b7faf 2014-03-19 (HEAD, origin/master, origin/HEAD, master) added aliases lds ld and le to git-include file [Jay Everson (Macbook)] e729205 2014-03-19 Added cool aliases to .git-Include, found one the web [Jay Everson (Macbook)] 56375a9 2014-02-01 Adding git include [Jay Everson (VM)] Checkout that version git checkout 56375a9 .git-include Note: “lds” is an alias that is defined as: lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\...