Git Product home page Git Product logo

react-rails's Introduction

React-Rails

Preparing Mac OS Workstation

This tutorial assumes that you do not have any knowledge so if you are familiar with these tools, you can skip majority of parts

Will Add More Steps

...

Preparing Windows Workstation

This tutorial assumes that you do not have any knowledge so if you are familiar with these tools, you can skip majority of parts

Will Add More Steps

...

  • During installation choose nano editor if you need a simple one

  • Choose git from the command line and also from 3rd-party software

  • Use OpenSSH

  • Check OpenSSL

  • Yes for checkout Windows-style, commit Unix-style line endings

  • Use MinTTY

  • Enable file system caching

  • Enable Git Credential Manager

  • Enable symbolic links

Install any editor, e.g. Atom https://atom.io

  • Do not show welcome guide if you desired

  • Probably no for telemetry if asked

Open project in Atom

  • File - add project folder - Document/react-rails

OR

  • cd; cd Documents/react-rails; atom . in Git Bash

GIT Basics

Clone GIT project

  • You need github account for this

  • Open Git Bash

  • cd; cd Documents

  • git clone https://github.com/laimison/react-rails.git

  • cd react-rails

  • git checkout part1

Reset any changes in your local GIT

  • cd; cd Documents/react-rails

  • git reset --hard origin/part1

  • git fetch --all

Commit Your Changes to GIT

If you want to write some changes to this repository, you should be added as collaborator for this project

Option 1) ideally ask owner to give the access

Option 2) fork this repo

partX - can be any part that you want to change

  • Open another window of Git Bash

  • cd

  • cd Documents/react-rails

  • git config user.name "Your Name or nickname" - this name will be visible to the world.. surname is not required..

  • git config user.email "[email protected]" - it's not visible to anyone

  • git checkout partX

  • Now you can try to edit some code and push them to git!

  • git status

  • git add --all

  • git commit -m 'add some message what you have changed' - this is visible to the world

  • git push origin partX - it will ask for your Github username and password

GIT Commit in One Line (Optional)

Type this in Git Bash

cd; grep -qE 'git_push.*().*{' ~/.bash_profile || echo 'git_push () { git status && echo && echo $* | grep [a-zA-Z] && echo "Pushing as `git config user.name` in 5 seconds (CTRL+C to decline) ..." && sleep 5 && git config --global push.default current && git add --all && git commit -m "$*" && git push ; }' >> .bashrc

Reopen your Git Bash window

You should be in react-rails directory

git_push your "commit message here"

react-rails's People

Contributors

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