Nithish
Nithish

Reputation: 61

How to push existing RedHat BRMS project to remote git repository

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 [email protected]: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.

Upvotes: 0

Views: 135

Answers (1)

Nithish
Nithish

Reputation: 61

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.

Upvotes: 0

Related Questions