Skip to content

Lesson 7: Pushing to github #1744

Answered by thebraveman17
codeplay22 asked this question in Q&A
Discussion options

You must be logged in to vote

As much as I know, Foundry automatically creates a commit on initialization of a new project and on adding a new dependency so that's two commits. Even though forge-std is a built in library, I guess it is still counted as a dependency. The third commit is the one you made before pushing to GitHub I guess.

If you remember, Patrick said in the course to always add "--no-commit" when installing a dependency. That's exactly because of the default behavior of Foundry to create a commit after installing a dependency so you have to instruct it not to create a new commit.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@EngrPips
Comment options

@codeplay22
Comment options

@EngrPips
Comment options

@thebraveman17
Comment options

@codeplay22
Comment options

Answer selected by codeplay22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants