branch

git log --before=“4 months” show me branches that have commits from 3 weeks ago. what am I doing wrong?

浪子不回头ぞ 提交于 2020-08-25 17:41:14
问题 so I have this snippet that I want to use to filter out branches that doesn't have a certain prefix and that hasn't received any commits in over 3 months so that I can remove them from our remote later on. for k in $(git branch -r | awk -Forigin !'/\/Prefix1\/|\/prefix2\//'); do if [ "$(git log -1 --before="3 month" $k)" ]; then echo "$(git log -1 --pretty=format:"%ci, %cr, " $k) $k"; fi; done The problem is currently that when I run this I see branches that have received commits 3 weeks ago,

Reset all branches of a local repo to be the same as remote

会有一股神秘感。 提交于 2020-08-23 09:05:32
问题 First this is different because this is for all branches not one. (All the ones I have found only specify this for a single branch at a time) I work on a repo that has about 20-30 branches (long story bad practice I know I know) anyways I was deleting some old commits using the git bfg cleaner and after using it you need to either delete and reclone the code or reset every branch. I know how to set branches using git fetch origin git reset --hard origin/master But is there a way to reset

SVN: is it possible to get svn info for a given revision number of a branch

末鹿安然 提交于 2020-07-04 20:26:31
问题 Is it possible to get svn info for a branch for a specific revision number. For example if the latest working copy of a branch has revision number 56, can I get info for the same branch for revsion number 32. 回答1: There are two options available to get informatioon about past revisions: svn log -r <rev number> <url> : the commit message of a specified revision and url svn info -r <rev number> <url> : some technical information about a specified revision and url An example: svn log -r 5628