Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to Modify the committed code changes

Approach 1

Step 1 :  Go to the committed code changes repo folder path in your local terminal . Rework the code changes

Step 2 :  Using "git status" command to verify re-worked files(It shown as RED color in below screenshot).

Image Added

Step 3: Add the Re-Worked files to git by using "git add" command.

Code Block
languagebash
themeDJango
$ git add <path_of_file> 

For example,
 git add recipes-ccsp/util/utopia/system_defaults


Step 4:
 Using "git status" command to verify  the  current code changes(whether it's successfully added or not). It shown as GREEN color in below screenshot

Image Added


Step 5: Commit the changes by using below command,


Code Block
languagebash
themeDJango
$ git commit --amend


Step 6: Push the code changes to CMF Gerrit

Code Block
languagebash
themeDJango
$ git push origin HEAD:refs/for/<branch-name>