change the react app and deploy it on github
PS C:\Users\adaka\OneDrive\Desktop\react-app> cd react-git // react-git is the name of the folder
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/App.js
no changes added to commit (use "git add" and/or "git commit -a")
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git add .
warning: in the working copy of 'src/App.js', LF will be replaced by CRLF the next time Git touches it
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: src/App.js
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git commit -m "i will come again"
[main a526325] i will come again
1 file changed, 2 insertions(+)
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git push
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 396 bytes | 396.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/aniruddhaadak80/react-git2.git
068cebb..a526325 main -> main
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
PS C:\Users\adaka\OneDrive\Desktop\react-app\react-git> npm run deploy
> react-git@0.1.0 predeploy
> npm run build
> react-git@0.1.0 build
> react-scripts build
Creating an optimized production build...
Compiled with warnings.
[eslint]
src\App.js
Line 1:8: 'logo' is defined but never used
no-unused-vars
Line 26:1: Do not use <marquee> elements as they can create visual accessibility issues and are deprecated
jsx-a11y/no-distracting-elements
Line 28:1: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
jsx-a11y/alt-text
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
File sizes after gzip:
46.83 kB build\static\js\main.80dcf590.js
1.78 kB build\static\js\787.d3f3d4ed.chunk.js
541 B build\static\css\main.073c9b0a.css
The project was built assuming it is hosted at /react-git2/.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
Find out more about deployment here:
https://cra.link/deployment
> react-git@0.1.0 deploy
> gh-pages -d build
Published
Comments
Post a Comment