GithubHelp home page GithubHelp logo

navasarathy / learn-github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drshahizan/learn-github

0.0 0.0 0.0 1.17 MB

A step-by-step guide to getting started with Git and GitHub for beginners.

Jupyter Notebook 100.00%

learn-github's Introduction

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors

Don't forget to hit the ⭐ if you like this repo.

Research Colloquium Series 1: Best practices' for using the cloud in research

You will learn:

✅️ How to set up a cloud environment for research purposes.

✅️ How to integrate Github (cloud) with Github desktop, as well as Google Colab and Google Drive.

Please ensure that you already have a Github account.

Contents:

Git

Book

More Information About Git

Installing Git

The first step on the way to using Git is to install it! The directions found in the Git documentation below are pretty thorough and helpful, check them out for the best method of getting Git onto your platform of choice.

Some useful commands for getting started:

Command Explanation & Link
git clone URL Git clone is used to clone a remote repository into a local workspace
git push Git push is used to push commits from your local repo to a remote repo
git pull Git pull is used to fetch the newest updates from a remote repository
git remote List remote repos
git remote -v List remote repos verbosely
git remote show Describes a single remote repo
git remote update Fetches the most up-to-date objects
git fetch Downloads specific objects
git checkout effectively used to switch branches
git reset basically resets the repo, throwing away some changes. It’s somewhat difficult to understand, so reading the examples in the documentation may be a bit more useful
git commit --amend is used to make changes to commits after-the-fact, which can be useful for making notes about a given commit.
git revert makes a new commit which effectively rolls back a previous commit. It’s a bit like an undo command.
git branch Used to manage branches
git branch -d Deletes the branch
git branch -D Forcibly deletes the branch
git branch -r Lists remote branches; can be combined with other branch arguments to manage remote branches
git checkout Switches to a branch.
git checkout -b Creates a new branch and switches to it.
git merge Merge joins branches together.
git merge --abort If there are merge conflicts (meaning files are incompatible), --abort can be used to abort the merge action.
git log --graph --oneline This shows a summarized view of the commit history for a repo.

Github

GitHub Cheat-Sheet

Function: Follow, fork and star

There are various remote repository hosting sites:

Follow the workflow at https://github.com/join to set up a free account, username, and password. After that, these steps will help you create a brand new repository on GitHub.

This can be useful for keeping your local workspace up to date.

Merge conflicts are not uncommon when working in a team of developers, or on Open Source Software. Fortunately, GitHub has some good documentation on how to handle them when they happen:

You can also use git rebase branchname to change the base of the current branch to be branchname

The git rebase command is a lot more powerful. Check out this link for more information.

Github Profile 👋

  1. How to create a GitHub Profile README: Michelle Mannering
  2. mishmanners
  3. How To Create A GitHub Profile README: Monica Powell
  4. m0nica
  5. katiehuangx
  6. sharkawy98

Tools✨

Articles 📖

Tutorials 🎥

Github Pages

Google Colab✍️

  1. Welcome To Colaboratory
  2. Google Colab — The Beginner’s Guide
  3. Introduction to Colab and Python

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

learn-github's People

Contributors

ainon2309 avatar akmalraz avatar aljabarti84 avatar anwaraltalai avatar beingsavithrai avatar ceokereke avatar chikoness avatar drshahizan avatar duncansez avatar eisyaaaa avatar engrceo avatar georgesuperman avatar goldboy225 avatar kigen26 avatar kynashleee avatar ma2ri2al avatar mhmz89 avatar mierazizie avatar nazariah88 avatar ramli05 avatar rohaya91 avatar st-neoh avatar syahnmir123 avatar tangota avatar zhcaihua avatar zkri-saber avatar zunnurs01 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.