[RUBY] I want to push an app made with Rails 6 to GitHub

procedure

0. Settings (when developing with multiple people)

Terminal


$ git config --global user.name "name"
$ git config --global user.email [email protected] #address

1. Initialize the git repository created by rails new

Terminal


$ git init #Initialization

2. Add data to git repository and commit

Terminal


$ git status #Check the status of the file
$ git add -A #Specify the file to save-A can add all files, you can also add one by one by specifying the file name
$ git commit -m "Message content"

3. Launch the push destination repository on GitHub

github 1.png

4. Push to GitHub

Terminal


$ git remote add origin https://github.com/tkse16/sumple_app.git #Associate origin with GitHub repository
$ git push -u origin master #Push to GitHub.-u does not have to be

that's all!

Recommended Posts

I want to push an app made with Rails 6 to GitHub
How to push an app developed with Rails to Github
I want to make an ios.android app
I want to convert an array to Active Record Relation with Rails
Downgrade an existing app created with rails 5.2.4 to 5.1.6
I want to play with Firestore from Rails
[Rails] I want to load CSS with webpacker
I made an app to scribble with PencilKit on a PDF file
I want to dark mode with the SWT app
I want to authenticate users to Rails with Devise + OmniAuth
Rails6 I want to make an array of values with a check box
[Rails] I tried to create a mini app with FullCalendar
How to specify db when creating an app with rails
I want to manually send an authorization email with Devise
Confirm public key ~ Register key on Github ~ Push Rails app to Github
After posting an article with Rails Simple Calendar, I want to reflect it in the calendar.
[Rails] I made a simple calendar mini app with customized specifications.
I want to add a browsing function with ruby on rails
[Rails] I want to add data to Params when transitioning with link_to
I tried to introduce CircleCI 2.0 to Rails app
I want to use DBViewer with Eclipse 2018-12! !!
Introduced Vue.js to an existing Rails app
I made an eco server with scala
I made a rock-paper-scissors app with kotlin
I made a rock-paper-scissors app with android
Introduced Vuetify to an existing Rails app
I want to automate from project creation to GitHub repo creation, Initial Commit to git push with one command
I want to ForEach an array with a Lambda expression in Java
I want to introduce the committee with Rails without getting too dirty
I want to test Action Cable with RSpec test
I want to send an email in Java.
I made an app for myself! (Reading management app)
Publish the app made with ruby on rails
I want to use java8 forEach with index
I made an Android app for MiRm service
I made a LINE bot with Rails + heroku
[Rails] How to build an environment with Docker
I want to perform aggregation processing with spring-batch
I made a portfolio with Ruby On Rails
I want to be able to read a file using refile with administrate [rails6]
[Rails] I want to test with RSpec. We support your step [Introduction procedure]
I made an iPhone Theremin with Vision framework + AudioKit
Try running an app made with Quarkus on Heroku
How to make an almost static page with rails
I want to use a little icon in Rails
I want to know the answer of the rock-paper-scissors app
I want to monitor a specific file with WatchService
I want to define a function in Rails Console
Rails6 I tried to introduce Docker to an existing application
I want to transition screens with kotlin and java!
I made an Android application that GETs with HTTP
How to get started with creating a Rails app
I want to get along with Map [Java beginner]
I want to redirect sound from Ubuntu with xrdp
I want to return an object in CSV format with multi-line header & filter in Java
I want to hit the API with Rails on multiple docker-composes set up locally
I tried to make an introduction to PHP + MySQL with Docker
I tried to introduce Bootstrap 4 to the Rails 6 app [for beginners]
I made a development environment with rails6 + docker + postgreSQL + Materialize.
I made an interpreter (compiler?) With about 80 lines in Ruby.
[Rails] [bootstrap] I want to change the font size responsively