How do I update existing code with new release?

Special Notes

As per Envato policy installation, setup and configurations or modification are not included in free support. Free support is only for any bug/ error in original code. we do not provide installation and customization support in FREE SUPPORT.
Still, We are providing steps for How to update future release code to existing source code for your knowledge purpose.

How to update future release code to existing source code

If you want which file changes are on the latest updated version then you have to manage the git repository by yourself.

Here we have provided steps on how to update existing source code.

For First time: Initial project downloaded from codecanyon server. Step

Step 1: Create or login with github

Login or register your account with github:https://github.com/login

Step 2: Create a new project in Github

In your dashboard, click the green New button. This opens the New project page.

images
images

Step 3: Clone your project to your local system

Once project is created on your github server. You have to clone the project to your local system. You can clone it with the command line.

For ex: git clone https://github.com/YOURUSERNAME/your-repository-name.git

Copy your project url and clone into your exiting system

images
images

Once successfully clone then system will create a folder on your system

images

Step 4: Download project from codecanyon server
Step 5: Copy/paste your initial downloaded project to clone directories.

Once successfully downloaded project from codecanyon, copy/paste your downloaded project into clone directories

Note:

Only orignal source code is put here.

images

Step 6: Commit and push to github server

Onces copy/paste your changes to clone directres, you have to push all files to your github server. For that use the following commands.

After That follow below steps

  • – Goto inside your clone directory project
images
  • – Add your all files with “git add .” command
  • – Now commit your changes with below command
  • git commit -m ‘initial commit’

Note:

Write your latest version message instead of “initial commit”.

images
images
  • – Push your changes to server with below command
  • “git push” And provide you github credential details
images
  • – Check your all changes to github server
images

For Update existing code (If Already have old version of project)

NOTE: If you remove the project from the local system then clone the project again from your github server. Follow the same above Step 3: Clone your project to your local system

Steps 1: Download the latest version from codecanyon server.

Once you will received mail for updates. Just download latest code from codecanyon server.

Steps 2: Copy/paste your initial downloaded project to clone directories.

Once successfully downloaded project from codecanyon, copy/paste your downloaded project into clone directories

Note:

Only orignal source code is put here.

Steps 3: Commit and push to github server

Follow same Step 6: Commit and push to github server

Steps 4: Check updated files

After committing your latest changes. Goto github project dashboard and click on commit link.

images

Click on “XX changed file” to see which file has been changed.

images

Connect to server and open project directory

images

Run “git init” command to initialize git

images

Run following commant to connect your server with github repository. Don’t forget to put your oauth key and github repository url.

images

Pull changes using following command

images