Coder Social home page Coder Social logo

bc3-git-workshop's Introduction

BC3-git-workshop

Introduction to GitHub for collaborative projects

a) Install Git on Linux: Debian / Ubuntu (apt-get)

Example

From your terminal, install Git using apt-get:

sudo apt-get update
sudo apt-get install git

Verify the installation was successful by typing:

git --version

Configure your Git username and email using the following commands, replacing Mark's name with your own. These details will be associated with any commits that you create:

git config --global user.name "Mark Zuckerberg"
git config --global user.email "[email protected]"

b) Install Git on Mac OS X

Example

Install from Homebrew

Open your terminal and install Git using Homebrew:

brew install git

Verify the installation was successful by typing:

git --version

Configure your Git username and email using the following commands, replacing Mark's name with your own. These details will be associated with any commits that you create:

git config --global user.name "Mark Zuckerberg"
git config --global user.email "[email protected]"

Check if you already have MacPorts installed:

which port

It should returns: /opt/local/bin/port

If not, install it:

sudo port install git

Install from an Installer

(I do not recommend it)

  1. Navigate to the latest macOS Git Installer and download the latest version.

  2. Once the installer has started, follow the instructions as provided until the installation is complete.

  3. Verify the installation was successful by typing:

git --version

c) Install Git on Windows

Example

  1. Navigate to the latest Git for Windows installer and download the latest version.

  2. Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.

  3. Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).

These are my recoomendations, but please, feel free to explore and consider all options:
  - Use bundled OpenSSH
  - Use the OpenSSL library
  - Checkout Windows-style, commit Unix-style line endings
  - Use MinTTY (the default terminal of MSYS2)
  - Fast-forward or merge
  - Git Credential Manager
  - Enable file system caching
  - Override the default branch name for new repositories
  - Git from the command line and also from 3rd-party software
  1. Verify the installation was successful by typing:
git version
  1. Configure your Git username and email using the following commands, replacing Mark's name with your own. These details will be associated with any commits that you create:
git config --global user.name "Mark Zuckerberg"
git config --global user.email "[email protected]"

Basic commands for git usage:

Git Cheat Sheet

a) Short and concise name

b) Avoid special characters and white spaces

c) Select between public or private

d) Add .gitignoreand select R

e) Edit README

On GitHub repository go to Code -> Copy to clipboard

Link the repository to RStudio / Visual Studio Code / Others

On RStudio:

  • File: New Project: Version Control: Git

  • Paste URL and insert Project directory name

  • Create Project

bc3-git-workshop's People

Contributors

ljchueca 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.