How to delete the computer files to turn them into another



  • Is it possible to go back to the commite and do differently, or how to delete the files from the commite so that these files can be added to another comemite?



  • Yes, the old committ can be corrected as follows:

    • create a branch on a refrigerated comme, stand on it.checkout -b)
    • correct the code, pour the committ (but!) ammend last commit (sing) such switch to UI and command line
    • All the old-fashioned committs moving after a correction to a new branch (rebase - to move once, or cherry-pick - One. I prefer one for the best. Conflict resolution. cherry-pick You can do the same from UI, the right button on the commite, and there's gonna be this option.

    If you want to remove the files from him - at the code-coding stage - remove them from the commite - "hide" by the team. git stash saveammend last commit To re-enact the current, cherry-pick to the proper comme you want the files and the team. git stash pop Get them out of the stash and lock them up properly.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2