Skip to main content

git Update failed

 Issue -  when you work with a large team, the git repository may have many branch creation and deletion operations, sometimes we may getting git update failed, when we try to update the whole repository.



Solution - Tyr >  git fetch -p


-p, --prune

After fetching, remove any remote-tracking references that no longer exist on the remote. Tags are not subject to pruning if they are fetched only because of the default tag auto-following or due to a --tags option. However, if tags are fetched due to an explicit refspec (either on the command line or in the remote configuration, for example if the remote was cloned with the --mirror option), then they are also subject to pruning.

Comments

Popular posts from this blog

Angular 2 Typescript without node or npm

To getting start with angular2 app, we need to setup some bunch of  tool and boilerplate codes. Fortunately there are many easy getting-start projects available for angular2. Those are  angular-cli , angual2-seed etc. Anyway we need to rely on node and npm, that would need for real angular2 projects. But sometimes we need to test  angular2 features  and share demo codes with others. Installing large node modules and setting-up not worth for this kind of task. However for small task you can use angular2 without npm.     have a look at github repository -  https://github.com/ishara/angular2-without-npm happy coding.

SVN get revision number list for date period

I need to get SVN revision numbers for particular date range , following steps has been done. svn log -r {2012-05-01}:{2012-05-03} URL >> svn_log_r_2012_05_01_2012_05_03.txt You will get all revisions for specified date range. sed -n '/r[0-9]/p' svn_log_r_2012_05_01_2012_05_03.txt > out1.txt Remove unwanted lines. sed 's/\([^|]*\).*/\1/' out1.txt > out2.txt Extract ‘r123’ pattern column. sed 's/r/ /' out2.txt > revision_no_list.txt Remove 'r' from file. Resources - http://sed.sourceforge.net