0

I have an existing Redhat BRMS Project. I want to push all my Existing project assets present so far from local git to remote Git location( Github).

Step 1 : I moved into the .git directory

cd JBOSS_HOME/bin/.niogit/REPOSITORY_NAME.git

Step 2 : I have pointed my remote URL to github

git remote set-url origin git@github.com:USERNAME/REPOSITORY_NAME.git

Step 3 : Create post-commit sh file inside hooks folder

git push origin master
chmod +x post-commit

Step 4 : I added new data object and made a save. Nothing got reflected in my remote git .

Please let me know just in case if I missed something.

Nithish
  • 61
  • 10

1 Answers1

0

Closing the issue. Points to be noted.

  1. Make sure ssh keys which got created in your local machine gets added in remote github.
  2. post-commit file should not have any extension ( like .sh )
  3. This is optional, in mycase this worked after a long struggle. Restart the machine and try again.
Nithish
  • 61
  • 10