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

AWS Elasticache Memcached connection

https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/accessing-elasticache.html#access-from-outside-aws http://hourlyapps.blogspot.com/2010/06/examples-of-memcached-commands.html Access memcached https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/GettingStarted.AuthorizeAccess.html Zip include hidden file https://stackoverflow.com/questions/12493206/zip-including-hidden-files phpmemcachedadmin ~ phpMyAdmin or phpPgAdmin ... telnet mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com 11211 stats items stats cachedump 27 100 https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/VPCs.EC.html https://lzone.de/cheat-sheet/memcached VPC ID Security Group ID (sg-...) Cluster: The identifier for the cluster memcached1 Creation Time: The time (UTC) when the cluster was created January 9, 2019 at 11:47:16 AM UTC+7 Configuration Endpoint: The configuration endpoint of the cluster memcached1.ahgofe.cfg.usw1.cache.amazonaws.com:11211 St...

Notes Windows 10 Virtualbox config, PHP Storm Japanese, custom PHP, Apache build, Postgresql

 cmd => Ctrl + Shift + Enter mklink "C:\Users\HauNT\Videos\host3" "C:\Windows\System32\drivers\etc\hosts" https://www.quora.com/How-to-create-a-router-in-php https://serverfault.com/questions/225155/virtualbox-how-to-set-up-networking-so-both-host-and-guest-can-access-internet 1 NAT + 1 host only config https://unix.stackexchange.com/questions/115464/how-to-properly-set-up-2-network-interfaces-in-centos-running-in-virtualbox DEVICE=eth0 TYPE=Ethernet #BOOTPROTO=dhcp BOOTPROTO=none #IPADDR=10.9.11.246 #PREFIX=24 #GATEWAY=10.9.11.1 #IPV4_FAILURE_FATAL=yes #HWADDR=08:00:27:CC:AC:AC ONBOOT=yes NAME="System eth0" [root@localhost www]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 IPADDR=192.168.56.28 <= no eff => auto like DHCP #GATEWAY=192.168.56.1 #BOOTPROTO=dhcp BOOTPROTO=static <= no eff ONBOOT=yes HWADDR=08:00:27:b4:20:10 [root@localhost www]# ...

Rocket.Chat DB schema

_raix_push_notifications avatars.chunks avatars.files instances meteor_accounts_loginServiceConfiguration meteor_oauth_pendingCredentials meteor_oauth_pendingRequestTokens migrations rocketchat__trash rocketchat_cron_history rocketchat_custom_emoji rocketchat_custom_sounds rocketchat_import rocketchat_integration_history rocketchat_integrations rocketchat_livechat_custom_field rocketchat_livechat_department rocketchat_livechat_department_agents rocketchat_livechat_external_message rocketchat_livechat_inquiry rocketchat_livechat_office_hour rocketchat_livechat_page_visited rocketchat_livechat_trigger rocketchat_message rocketchat_oauth_apps rocketchat_oembed_cache rocketchat_permissions rocketchat_raw_imports rocketchat_reports rocketchat_roles rocketchat_room rocketchat_settings rocketchat_smarsh_history rocketchat_statistics rocketchat_subscription rocketchat_uploads system.indexes users usersSessions https://rocket.chat/docs/developer-guides/sc...