Changes between Version 2 and Version 3 of GitCreateBundle


Ignore:
Timestamp:
Oct 15, 2013, 4:23:44 PM (11 years ago)
Author:
Piero Campalani
Comment:

fixes

Legend:

Unmodified
Added
Removed
Modified
  • GitCreateBundle

    v2 v3  
    5656#!sh
    5757$ git fetch origin
    58 $ # already up-to-date? otherwise pull new changes on both branches.
     58# already up-to-date? otherwise pull new changes on both branches.
    5959
    6060$ git branch
     
    6464  release_8.5
    6565$ git merge feature_X --no-ff
    66 $ # In case of "Automatic merge failed; fix conflicts and then commit the result.", then see you later.
     66# In case of "Automatic merge failed; fix conflicts and then commit the result.", then see you later.
    6767
    68 $ # Check:
     68# Check:
    6969$ git log --oneline -1 master
    70703f36d7f Merge branch 'feature_X' into master
     
    122122
    123123
    124 $ # Verify which HEADs will go into the bundle
     124# Verify which HEADs will go into the bundle
    125125$ git log master ^5ee465 --oneline
    1261263f36d7f Merge branch 'ProvaMerge' into ProvaMergeMaster
     
    12812879e8805 C
    129129
    130 $ # Create the bundle
     130# Create the bundle
    131131$ git bundle create ticket:XYZ_MergingFeature_xOnMaster.bundle master ^5ee465
    132132Counting objects: 14, done.
     
    136136Total 9 (delta 8), reused 0 (delta 0)
    137137
    138 $ # See inside it:
     138# See inside it:
    139139$ git list-heads ticket:XYZ_MergingFeature_xOnMaster.bundle
    1401403f36d7f1a19c3e4cfeab66807dd39f6d7fda771b refs/heads/master
     
    147147{{{
    148148#!sh
    149 $ # Create/init new empty repo
     149# Create/init new empty repo
    150150$ echo `pwd`
    151151/home/rasdaman/rasdaman
     
    154154$ git init
    155155
    156 $ # push two branches to the test repo
     156# push two branches to the test repo
    157157$ cd /home/rasdaman/rasdaman
    158158$ git remote add test_remote ~/test_repo
     
    160160$ git push test_remote feature_X
    161161
    162 $ # Now move to the test repo
     162# Now move to the test repo
    163163$ cd ~/test_repo
    164164$ git branch
     
    166166* master
    167167
    168 $ # check out on a branch you're not merging into:
     168# check out on a branch you're not merging into:
    169169$ git checkout feature_x
    170170$ git branch