Code Monkey home page Code Monkey logo

hh-git-assignment-1's Introduction

# 01
git init ./A
# 02
cd ./A
touch A B
git add A B
git commit -m "1st commit"
# 03
git branch branch1
# 04
cd ../
git clone ./A ./B
# 05
cd B
git checkout -b branch1 origin/branch1
touch C
git add C
git commit -m "2nd commit"
# 06
git push origin branch1
# 07
cd ../A
git checkout branch1
echo "line #1" > C
git add C
git commit -m "modified line #1 in file C"
# 08
cd ../B
echo "line #1 version2" > C
git add C
git commit -m "modified line #1 in file C"
# 09
git fetch origin
# 10
git merge
echo "line #1 merged" > C
git commit -a -m "merge conflicts"
# 11
cd ../A
git remote add repoB ../B
# 12
git pull repoB branch1

hh-git-assignment-1's People

Contributors

asdzxcasd avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.