Search Postgresql Archives

https://wiki.postgresql.org/wiki/Working_with_Git link one link cannot open, another link is unrelated.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Hi. It's more like a git question less like a postgres question..
I executed the following commands

rm /home/jian/Downloads/001_psql_parse_only_test.patch
git checkout master
git branch --delete --force feature_to_review
git  checkout -b feature_to_review
patch -p1 --batch < /home/jian/Downloads/001_psql_parse_only.v1.patch
git commit -a -m "test"
git diff --patience master feature_to_review > /home/jian/Downloads/001_psql_parse_only_test.patch
git diff --color-words --no-index /home/jian/Downloads/001_psql_parse_only.v1.patch  /home/jian/Downloads/001_psql_parse_only_test.patch

the last command should return nothing? The idea is to create a local branch, patch the downloaded patch file, and commit the patch file.
Then try to use git diff to validate local branch = master + patch file by comparing the download patch file with the output of (git diff branchA branchB).
Generally what's the correct commands (workflow to patch the patch file) and how can i validate the local branch only has the patched file changes and no others.


See the documentation and tutorials at http://git.or.cz/ for a more detailed Git introduction. For a more detailed lesson, check out http://progit.org and maybe get a hardcopy to help support the site.
the first link not working, the second link, is not that related to git.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux