Hi Irshad
You have to checkout a branch before you can commit to it.
So first run
git branch
Outcome should be
*master
This means you are in master still. (trunk)
Then run
git checkout <version number>
And run
git branch
Outcome should be
*<version number> master
This means you have checkout the branch by now
Then do the change and run
git add
git commit
git push *(no origin master)*
This should do it. Refer to [1].
[1] http://git-scm.com/docs/user-manual.html
Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
On Mon, Jul 21, 2014 at 6:57 PM, Irshad Hassan <[email protected]>
wrote:
> Hi All,
>
> I have created a JAX-RS app in App cloud and created a branch, forked it
> and cloned it to the local machine. I have made changes to the code and
> after i committed the changes to the forked branch i could not see the
> changes in the branch. following is the list of commands i used.
>
> 1. git clone <FORKED URL>
> 2. git add <MODIFIED FILES>
> 3. git commit
> 4. git push origin master
>
> Where I'm going wrong ?
>
> Thanks.
> Best Regards,
> Irshad
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev