Kurinchi Blogger Scribbles …

Posts Tagged ‘git’

Feb 22

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

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

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

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

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


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

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

Feb 01

Choosing version control system (VCS): Git vs Subversion

Last updated: February 1st, 2010


– 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

Free resources – Open source code management related

Last updated: August 15th, 2009

Code Revision, Code Management

Subversion (Tigris) Download

Open Source Version Control Book

Git Distributed Open Source Version Control Download

Git Man Page

CVS Download

CVS Help

Valid HTML 4.01 Strict  Valid HTML 4.01 Strict