Navneet Yadav
Navneet Yadav

Reputation: 48

Git push success but files not updated in website

I am using Git ( GUI GitKraken) with cPanel.

In cPanel public_html/web I have git repository created using commands:

mkdir ~/web

cd web

git init

git config receive.denyCurrentBranch updateInstead

Now in my laptop, i cloned via GitKraken to www directory of xammp localhost server. Idea is to make changes in site locally and push those chnages to live site via Git.

Everything was working fine last night, but today remote server files are not updating(showing pushed changes). Git says its been pushed successfully to origin, but files are not updating.

Note: I have 3 branches in my Local Repo:

and i am pushing these to master branch of remote repo.

Upvotes: 0

Views: 1390

Answers (1)

user5845413
user5845413

Reputation:

From your comment I see there are two Solutions for your Problem:

  1. Merge your local branch 'version2.2' to the master branch and push it to remote. Fetch & Pull it on your remote System.
  2. Push your local branch 'version2.2' to the remote with git push -u origin version2.2 After that you have to create and checkout the local branch on your remote System and pull the changes,the local branch "version2.2" also have to track the remote branch remote branch 'version2.2'. All of this you can do with this command: git checkout --track origin/version2.2

You are able to do all of these steps in gitkraken too (without using the command line)

Upvotes: 3

Related Questions