2x1=10

because numbers are people, too
Persönliches
Fotografie
Programmierung
    • git: pushing to multiple remotes at the same time

      When work­ing on a project on GitHub, I some­times like to keep an addi­tion­al copy float­ing around on my own serv­er for eso­ter­i­cal rea­sons. While the fol­low­ing is pos­si­ble:

      $ git remote add origin git@a.b:c/d.git
      $ git remote add another git@w.x:y/z.git
      
      $ git push origin
      $ git push another
      

      it is quite annoy­ing to issue the push com­mand twice — advanced git-fu to the resuce. Some dude over at Stack Over­flow point­ed out that Git sup­ports the notion of a pushurl, being an end­point for push­ing to a giv­en remote. The fun thing is that every remote may have mul­ti­ple push URLs, which is exact­ly what I need­ed.

      It needs to be said that despite the usage of the --add flag in the fol­low­ing snip­pet, a push URL always over­writes the default URL, so adding only one URL results in the orig­i­nal entry being over­ruled. So, for the sit­u­a­tion giv­en in the exam­ple above:

      $ git remote add origin git@a.b:c/d.git
      $ git remote set-url --add --push origin git@a.b:c/d.git
      $ git remote set-url --add --push origin git@w.x:y/z.git
      
      $ git push origin
      

      And that’s it. By push­ing to origin Git instead push­es to both reg­is­tered URLs.

      Februar 22nd, 2015 GMT +1 von
      Markus
      2015-02-22T19:31:03+01:00 2015-03-4T15:17:35+01:00 · 0 Kommentare
      git
      Version Control

      Hinterlasse einen Kommentar

      Hier klicken, um das Antworten abzubrechen.

    1. « newer
    2. 1
    3. …
    4. 10
    5. 11
    6. 12
    7. 13
    8. 14
    9. 15
    10. 16
    11. …
    12. 43
    13. older »
    • Kategorien

      • .NET
        • ASP.NET
        • Core
        • DNX
      • Allgemein
      • Android
      • Data Science
      • Embedded
      • FPGA
      • Humor
      • Image Processing
      • Kalman Filter
      • Machine Learning
        • Caffe
        • Hidden Markov Models
        • ML Summarized
        • Neural Networks
        • TensorFlow
      • Mapping
      • MATLAB
      • Robotik
      • Rust
      • Signal Processing
      • Tutorial
      • Version Control
    • Neueste Beiträge

      • Summarized: The E-Dimension — Why Machine Learning Doesn’t Work Well for Some Problems?
      • Use your conda environment in Jupyter Notebooks
      • Building OpenCV for Anaconda Python 3
      • Using TensorFlow’s Supervisor with TensorBoard summary groups
      • Getting an image into and out of TensorFlow
    • Kategorien

      .NET Allgemein Android ASP.NET Caffe Core Data Science DNX Embedded FPGA Hidden Markov Models Humor Image Processing Kalman Filter Machine Learning Mapping MATLAB ML Summarized Neural Networks Robotik Rust Signal Processing TensorFlow Tutorial Version Control
    • Tags

      .NET Accelerometer Anaconda Bitmap Bug Canvas CLR docker FPGA FRDM-KL25Z FRDM-KL26Z Freescale git Gyroscope Integration Drift Intent J-Link Linear Programming Linux Magnetometer Matlab Mono Naismith OpenCV Open Intents OpenSDA Optimization Pipistrello Player/Stage PWM Python Sensor Fusion Simulink Spartan 6 svn tensorflow Tilt Compensation TRIAD ubuntu Windows Xilinx Xilinx SDK ZedBoard ZYBO Zynq
    • Letzte Kommetare

      • Lecke Mio bei Frequency-variable PWM generator in Simulink
      • Vaibhav bei Use your conda environment in Jupyter Notebooks
      • newbee bei Frequency-variable PWM generator in Simulink
      • Markus bei Using TensorFlow’s Supervisor with TensorBoard summary groups
      • Toke bei Using TensorFlow’s Supervisor with TensorBoard summary groups
    • Blog durchsuchen

    • Februar 2015
      M D M D F S S
      « Sep   Mrz »
       1
      2345678
      9101112131415
      16171819202122
      232425262728  
    • Self

      • Find me on GitHub
      • Google+
      • Me on Stack­Ex­change
      • Ye olde blog
    • Meta

      • Anmelden
      • Beitrags-Feed (RSS)
      • Kommentare als RSS
      • WordPress.org
    (Generiert in 0,289 Sekunden)

    Zurück nach oben.