[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 14ff0cb 01/12: Add a note about branching
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 14ff0cb 01/12: Add a note about branching |
Date: |
Thu, 11 Jun 2020 20:58:31 -0400 (EDT) |
branch: master
commit 14ff0cbe73cf2fea81bef28ee9cf6770ab4b4ee7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Add a note about branching
---
gwc/develop1.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index c400d8d..da8837b 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -92,6 +92,12 @@ git checkout odd/foo
git commit sandbox_test.cpp
git checkout master
git push origin odd/foo
+
+ # to transplant already-pushed commits to a new branch
+git branch odd/foo
+git reset --keep origin/master
+ # ...and don't ever rebase that new branch
+
# (to copy to a subdir before deletion, so it's in permanent history)
# (this works only if all modified files are unique to the branch)
git checkout master
- [lmi-commits] [lmi] master updated (df723ac -> 0331fca), Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 14ff0cb 01/12: Add a note about branching,
Greg Chicares <=
- [lmi-commits] [lmi] master c7016ba 05/12: Add all groups before adding any user, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 6e50a5d 02/12: Create a root-owned file in root's $HOME, not someone else's, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 6a0b050 06/12: Refactor to make multi-user configuration easier, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master a75ef22 04/12: Extract blocks into sub-scripts #24, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 8bf7f0e 03/12: Extract block into sub-script #29, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 0331fca 12/12: Configure 'wine' for each user, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 4dcd8ee 08/12: Restrict permissions to 644 for home-directory files, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 9ef51ab 09/12: Configure all users, Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master 0d823ab 11/12: Merge 'lmi_setup_41.sh' into 'lmi_setup_40.sh', Greg Chicares, 2020/06/11
- [lmi-commits] [lmi] master bd371a2 10/12: Move git configuration, Greg Chicares, 2020/06/11