

Your branch is up to date with 'origin/master'. It will be something like below: On branch master This command will show the files modified by you. First make some changes to the file first.
#Instacode demo how to#
In this section we will see how to do that. You will need to make changes in your project and upload the updated file to the GitHub repository. Most of the time, that is not the end of it. In the above step, we have seen how to create, initialize and upload your codes to GitHub using Git. Updating the file and uploading changes to GitHub To check if all went good, open the link to your code in GitHub website and you should be able to see the files there. Remote: Resolving deltas: 100% (3/3), done.īranch 'master' set up to track remote branch 'master' from 'origin'. It will be something like below: Enumerating objects: 91, done. This might take some time based on your file size and internet bandwidth. If you are having different branch, please mention the name of that branch. Here we will be pushing all our files to the branch “master”. Once the above command runs successfully. We will now connect our local repository with the remote repository. Next, we will proceed to add our code to this repository from our local folder. Now we are done with creating a repository on GitHub. Successfully Create New Repository in GitHub Next click on the Plus (+) symbol on top right corner of the page and click “New Repository”. To create a new repository on GitHub, you need to visit and log in to your account. For this, it might take some time if you have a huge number of files.īefore we use the terminal further, let us create repository on GitHub first. git commit -m "This is First Commit"Īs this will be our first commit, so with the message I can understand it. So with this message we can understand what we had done with this particular commit. While committing the changes, we will specify message. OK, we have now added the file, next we will commit. You do not want to upload this file to GitHub, just add the file to. For example, you might have a new file with some credentials. This is very important if you are sharing your source code to the public. gitignore file will not be added to our GitHub repository. If you check the content of this file, it will have many files and path to the directory.Īny file or folder listed in the.

This file will be auto-generated when you create the Flutter project. Notice the (dot) after add command? That will add everything from current directory, all files and sub folders.Īt this moment I will like to mention about. Once the repository is initialized we will now add all the files in the current folder. Once you are inside the project directory, we will create empty git repository or reinitialize existing one. For this purpose open your terminal or CMD for windows and go to your project directory.

Now let us prepare our local project directory first. If you would like to know, please let me know in the comments, I will surely make a tutorial. Installing Git, creating GitHub account and configuring Git is out of the scope of this tutorial. In this tutorial, I will be explaining only way to upload the flutter project or any directory to GitHub.
#Instacode demo for free#
#Instacode demo software#
To get started and upload your flutter project to GitHub we will need some software to be installed in your PC.
