Kurinchi Blogger Scribbles …


Posts Tagged ‘git’

Feb 22
2017

Git: Reset local branch to make it the same as remote branch master

Last updated: February 22nd, 2017

Go to your local repository in bash

$ git fetch origin

$ git reset –hard origin/master

To clean and remove untracked files and directories

$ git clean -fdx

Feb 15
2017

Git: How to reset Develop branch to be in sync with Master branch?

Last updated: February 15th, 2017

First checkout Develop branch

$ git checkout dev

Then, reset it to Master branch
$ git reset –hard master

Make sure to push the changes by force to make origin/dev to be the same as origin/master
$ git push –force origin develop

Dec 29
2016

Git error: src refspec master does not match any

Last updated: December 29th, 2016

Point 1) Check if you have followed the below sequence of steps when setting up git in your local workstation

$ git init

$ git add .

$ git commit -am “name of the commit”

$ git remote add origin https://github.com/username/repository.git

$ git push -u origin master

Point 2) Check if .git/config file has the following parameters in it

[branch “master”]

remote = origin

merge = refs/heads/master

Dec 17
2016

Git: error: RPC failed; curl 55 SSL_write() returned SYSCALL,

Last updated: December 16th, 2016

Git uses “Transfer-encoding” in POST requests and some proxy servers do not support this encoding by default. When large files are pushed, the git client requires higher http.postBuffer setting.

Increase the buffer size to see if the issue is related to it.

$ git config –global http.postBuffer 134217728

Dec 16
2016

Git: SSL certificate problem: unable to get local issuer certificate

Last updated: December 16th, 2016

You get this message when the system is behind a firewall and when the security certificates are blocked.

There are two ways to overcome this message and to enable a git pull or git clone.

i) Issue the below command from git bash

$ git config –global http.sslVerify false

OR

ii) Add http block in “gitconfig” file to avoid ssl verification

[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt

Feb 01
2010

Choosing version control system (VCS): Git vs Subversion

Last updated: February 1st, 2010

Git

– Distributed repository system (adaptive work flow models)
– Source control taxonomy: DAG storage
– URI to git directory is where the repository is stored and it always has branches and tags
– Repository root folder contains a .git directory which maintains file history
– Scalability
– Faster, Efficient branching and merging
– License: Copyleft

Subversion (SVN)

– Centralized repository system
– Source control taxonomy: Delta storage
– URI to a subversion depository most commonly adopts /trunks, /branches and /tags directories
– Each folder maintains a .svn directory to store the file history
– Not efficient in scaling
– Not efficient in branching and merging
– License: Copyfree

Aug 18
2009

Free resources – Open source code management related

Last updated: August 15th, 2009

Code Revision, Code Management

Subversion (Tigris) Download
http://subversion.tigris.org/getting.html

Open Source Version Control Book
http://svnbook.red-bean.com/

Git Distributed Open Source Version Control Download
http://git-scm.com/download

Git Man Page
http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html

CVS Download
http://www.nongnu.org/cvs/

CVS Help
http://ximbiot.com/cvs/manual/


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict