Skip to main content

History file, folder, source code Git, SVN, linux

Git list all file change between 2 commit.
git diff --name-only SHA1 SHA2

http://stackoverflow.com/questions/1552340/how-to-list-the-file-names-only-that-changed-between-two-commits

Svn list all change between 2 revision
svn diff -r REVNO:HEAD --summarize

history

Bash diff folder (only list file)
diff --brief -r source_dir/ dest_dir/

svn merge rabc:rdef branch to .

bash find modified by time (update link here)

gitk - tool GUI for find all change history of a file /folder (easy browse like sourceTree in Windows/OSX)

Bash recursive list file change by time.

http://serverfault.com/questions/61822/how-do-i-merge-two-svn-branches

http://unix.stackexchange.com/questions/146282/rsync-to-copy-files-which-has-changed

ou can use the -n option (or --dry-run) to check your command. It will show what it would do without actually copying any files.

Therefore:

rsync -uan /var/lib/mysql/mysql-bin.*  /dbdata/binarylog/
and once you're happy that the files are listed correctly on the dry-run, remove the n:

rsync -ua --progress /var/lib/mysql/mysql-bin.*  /dbdata/binarylog/

rsync -avz

As it says in the man page --dry-run flag is most commonly used in conjunction with the --verbose flag

git ls-files --deleted -z | xargs -0 git rm


Update 1: 02-March

I would like to do exactly as the subject says. It's not possible to merge the current branch to the trunk yet, otherwise, that's what I'd do. The subbranch (or whatever the term is) will be merged with the branch and then the branch back to the trunk.

Theoretically, this should work - does anyone see any problems with this? Thanks in advance
WTF are svn trunk, banch and tags ?
http://stackoverflow.com/questions/698313/what-is-trunk-branch-and-tag-in-subversion
Cơ hội khiến ta nhận ra kẻ khác càng khiến ta nhận ra chính m.
1 Cách hay để hiểu thêm về git là tìm hiểu các khái niệm svn.
Khi phải quay về làm v với SVN đúng là rất tù. Nhưng nếu bắt buộc thì phải tìm hiểu lại các khái niệm của SVN như trunk, tags, branch. Nó giống & khác git ntn ?
Các version sau này của svn (ie 1.9.*) thì có nhiều tính năng gần git hơn (nguồn ?), tuy nhiên nhiều cái thực tế ko rõ ràng. VD khi tạo 1 svn "repo" máy local để dùng bằng lệnh svnadmin. Tạo xong k thấy mục trunk nào trong mục svn  vừa tạo. ?? Ko rõ có config hay tham số j khi tạo repo mới có trunk ... ?
Việc handle wrong tech decision cũng quan trọng vì ko phải lúc nào cũng đúng ngay từ lúc chọn CN, nhất là trong team nhiều lead ko thống nhất và chịu update.

No, that sounds perfectly fine to me.

The only time you might have a problem is if you tried to merge the child branch directly into the trunk.

The confusion with tags and branches is that in svn there really is no distinction between them, besides the name of the directory. In svn you are able to commit changes to a tag, and in fact it is difficult to prevent this. Most other VCSes treat tags as immutable snapshots (points in time)

Nhớ lại câu của Thái DN: hiểu rõ tool mình sử dụng.



Comments

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe