-
Notifications
You must be signed in to change notification settings - Fork 1
Helpful Git Commands
In the VBAToolkit repository, the publication branch is an orphan one. This means that there is no parent relationship between publication and other branches, including master. So the publication branch may stay simple. publication and master are both tagged with publication version numbers. The publication branch contains the VBAToolKit.xlam in the Delivery folder, and Documentation in the dedicated folder. Images for the Wiki are in the Images subfolder of Documentation folder.
An orphan branch was created with the command git checkout --orphan publication.
If you are working on a branch, and you want to commit your local modifications to another branch, you can switch to this new branch and simultaneously merge your local modifications in it with git checkout --merge publication.
- Clone the project to local directory if he don't exist , ou if you have a problem with git GUI.
- choose the 'sha' commit that you wanna to delete it .
- tape this command ##
git revert sha -n - +- the update will be maded on local repository.
- push code to server ##
git push - commit change ##
git comit -m 'the message without space' -a
-
git statusto get change maded -
git commit -m "message without space" -acommit change and index files -
git pushpublish the new version
git reset --hard HEAD~1git push -f