I want to push an app made with Rails 6 to GitHub


0. Settings (when developing with multiple people)


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

1. Initialize the git repository created by rails new


$ git init #Initialization

2. Add data to git repository and commit


$ 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


$ 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
I want to play with Firestore from Rails
[Rails] I want to load CSS with webpacker
I want to dark mode with the SWT app
I want to authenticate users to Rails with Devise + OmniAuth
How to specify db when creating an app with rails
I want to manually send an authorization email with Devise
[Rails] I made a simple calendar mini app with customized specifications.
[Rails] I want to add data to Params when transitioning with link_to
I want to use DBViewer with Eclipse 2018-12! !!
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
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 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 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
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 made an adapter for communication class with Retrofit2 + Rx2
Back to top button made only with Javascript (rails, haml)
I made a plugin to execute jextract with Gradle task
I was addicted to setting default_url_options with Rails devise introduction
Summary of initial work when creating an app with Rails
I want to write a loop that references an index with Java 8's Stream API
I want to make a list with kotlin and java!
I want to make a function with kotlin and java!
I want to create a form to select the [Rails] category
[Rails] I tried to implement batch processing with Rake task
Even in Java, I want to output true with a == 1 && a == 2 && a == 3
How to make an app using Tensorflow with Android Studio
I want to implement various functions with kotlin and java!
I want to pass the startup command to postgres with docker-compose.
[Java] I want to test standard input & standard output with JUnit
I want to return to the previous screen with kotlin and java!
02. I made an API to connect to MySQL (MyBatis) from Spring Boot
I want to INSERT Spring Local Time with MySQL Time (also milliseconds)
I want to avoid OutOfMemory when outputting large files with POI
I got an IllegalAccessError when trying to use PowerMock with JUnit
I tried to implement the image preview function with Rails / jQuery
I tried to build an http2 development environment with Eclipse + Tomcat
I made a simple search form with Spring Boot + GitHub Search API.
What I was addicted to when implementing google authentication with rails
I tried to make an Android application with MVC now (Java)
I want to add devise in Rails, but I can't bundle install
Minimal Workflow to push Docker image to Github Container Registry with Github Actions