Git Product home page Git Product logo

hackademy-pycolab's Introduction

Python 101 Git Workshop

SSH Key generation

Generate key with ssh-keygen -t rsa Press enter to select defaults.

Print the public key:

cat ~/.ssh/<key_name>.pub

Git global setup

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

Clone repo

git clone <repo_link>

Branch

  • git branch Your current branch.
  • git branch <user-id>/<feature-name> Create branch <user-id>/<feature-name>.
  • git checkout pretty Move to pretty branch.
  • git checkout -b awesome Create a new awesome branch and move there.

Warnings

  • Please use <user-id>/<feature-name> for branch names. Example: lolteanu/fix-all-bugs. Thanks!

  • Make sure you are NEVER on main when writing code.

Create commit

  • git status View uncommitted and committed changes in files (red and green, respectively).

  • git add . Add all changes.

  • git commit -m "Create an awesome change" Commits changes with message.

  • git log Show commit history.

First changes

  • git push origin pretty Push changes from pretty branch.
  • git pull origin main Make sure you are on the main branch when pulling!

hackademy-pycolab's People

Contributors

alexandra-andreea avatar alexandra-luca avatar alexandracordunasu avatar alexp0112 avatar andreeacristinastan avatar andreeadrehuta avatar andreeag22 avatar andreeasima0304 avatar andreicalcan avatar andreitulpan avatar armand1903 avatar biancaa-t avatar bogdanbbm avatar bonch2001 avatar ciprian429 avatar codryy avatar cosminavramescu avatar cristianolaru16 avatar dariaciobanu15 avatar dianadutica avatar dragomir1401 avatar dumitrustefania avatar gabi-limberea avatar gemdekaise avatar georgeraducanu avatar hypersmoit avatar lolteanu avatar pvl26 avatar radu1999 avatar sidereal-sky avatar

Watchers

 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.