Sorry this is long, but sometimes we need the whole of scripture to understand.
We put on Jesus by the renewal of our mind, body and soul through Jesus life, death and resurrection by which we can reconcile ourselves back to Gods grace and mercy through His Salvation of renewal and rebirth of spirit. We now have the mind of Christ as joint heirs with Jesus as we walk in the path of Jesus and not our own path anymore.
John 3:3-21 except a man be born again of water and Spirit he cannot enter into the kingdom of God. Vs.6 that which is born of the Flesh is flesh and that which is born of the Spirit is spirit. Flesh cannot perceive the things of the Spirit and is enmity against God, Romans 8:6, 7.
Sin separates us from God because God is a spirit and can only recognize his own children by what spirit is living in their hearts. We have to renew, rebirth - born again, Gods Spirit within us in order to be called a child of God and see the kingdom of heaven. We now put off the old man (flesh) and put on the new man (Spirit), Colossians 3:1-17. We are renewed by the word of God and through the Holy Spirit teaching us of all things, John 14:26.
Acts 2:38,39 When we repent of our sins and ask Jesus into our hearts we are also receiving the promise of God that his Holy Spirit will come and dwell in our hearts and teach us of all things we need to learn, John 14:26. The baptism that Peter was talking about in Acts 2:38 was a Spiritual rebirth through the word of God. Some people think it is being dunked or sprinkled with water the way John the Baptist did and there is nothing wrong with that for it is an outward appearance to man that you have repented and received Jesus and the Holy Spirit into your life, Matthew 3:11, but Jesus himself never baptized with water, John 4:2, for the baptism of Jesus was for receiving the Spirit of God (Holy Spirit) that helps us to know the will of the Father, 1 Thessalonians 4:1-12.
There is nothing wrong with immersion in water as this is an outward appearance to others that you have received Gods Salvation and the Holy Spirit. When the Disciples where in the upper room they all received the Holy Spirit, not by immersion of water, but by Gods Spirit falling on them. What about those people who can not be immersed in water that are incapacitated. Peter did not say that it was through water that we receive the Holy Spirit in Acts 10:47, 48 he was saying that others should not forbid a Gentile who wants to be immersed in water, but repentance must come first and at the same time of repenting we also receive the Holy Spirit according to Acts 2:38,39.
This is from the Jerusalem Bible:
John 4:1 When Jesus heard that the Pharisees had found out that he was making and baptizing more disciples than John though in fact it was his disciples who baptized, not Jesus himself he left Judaea and went back to Galilee.
Johns baptism was for repentance, not for the receiving of the Holy Spirit as no one even knew anything of a Holy Spirit until Jesus taught them that another comforter would come down and the Holy Spirit was given on the day of Pentecost in the upper room. When Jesus was baptized of John is was to fulfill Gods righteousness in Him to receive Gods power and authority. Water baptism is an outward appearance to others that you have been made righteous through Christ and have receive the Holy Spirit as we are given Gods power and authority through His grace to be His servants and witness here on Earth as Christ was.
Mat 3:14 But John forbade him, saying, I have need to be baptized of thee, and comest thou to me?
Mat 3:15 And Jesus answering said unto him, suffer it to be so now: for thus it becometh us to fulfill all righteousness. Then he suffered him.
Mark 10:39; 16:15,16; Acts 2:38 It is Gods Spirit that was in Christ and which we are now baptized or have received as the disciples did on the day of Pentecost as when Jesus ascended into Heaven the Holy Spirit came down and fell on those who received Jesus and his word. The baptism that Jesus and Peter was talking about was a Spiritual rebirth through Gods word, not water, Luke 3:16, as Peter taught it was through repentance and accepting Jesus and his teachings is when we receive the Holy Spirit.
Acts 8:36-38 we have to believe first and through confession we are given the Holy Spirit.
Acts 10:44-48 The Holy Spirit already fell on the disciples while they were listening to Peter. (No water involved)
Acts 19:1-7 Johns baptism was for repentance and the Holy Spirit was not received nor even heard of yet until the day in the upper room that Jesus was raised up to Heaven and the Holy Spirit fell down on all of them in that room. John baptized with water unto repentance but only as a symbolic sign that one had already received Jesus through confession/repentance.
John 14:16, 17 Jesus is telling his disciples that he will not leave them, but will send the Holy Spirit to comfort them and teach them. Jesus himself did not baptize with water, but with the Spirit and Christian baptism was only instituted after the resurrection when the Lord gave the commission to his apostles to go into all the world and preach the gospel to every creature, Matthew 28:19,20.
Acts 2:38 and Acts 10:47, 48 are both talking about water, but not for the remission of sins, but for an afterward appearance of acknowledgement. We are given the Holy Spirit at the same time of repentance and has nothing to do with water baptism as I have stated that water baptism is an outward appearance to others that you have already confessed and believed and received the Holy Spirit.
This is what Smith's Bible dictionary says:
To be baptized for Christ shows an intention to become a true follower of Christ. John baptized with water unto repentance but as a sign of it, perhaps only a sign of their willingness to enroll themselves among John’s followers. Jesus himself did not baptize with water, but with the Spirit and Christian baptism was only instituted after the resurrection when the Lord gave the commission to his apostles to go into all the world and preach the gospel to every creature.
Act 10:47 Can any man forbid water, that these should not be baptized, which have received the Holy Ghost as well as we?
This verse shows that these men had already received the Holy Spirit, but wanted to be baptized in water also as followers of Christ. So I believe both verses in Acts to be water, but not for the receiving of the Holy Spirit, but an outward appearance to others that they have repented and received the Holy Spirit already.
Mat 3:14 But John forbade him, saying, I have need to be baptized of thee, and comest thou to me?
Mat 3:15 And Jesus answering said unto him, suffer it to be so now: for thus it becometh us to fulfill all righteousness. Then he suffered him.